fix(commandline): Make esc close the commandline when quick restart is set to esc (#3482) nishu-murmu

* Make esc close the commandline when quick restart is set to esc

* condensed logic

Co-authored-by: Miodec <bartnikjack@gmail.com>
This commit is contained in:
Nishu Murmu 2022-09-01 15:03:37 +05:30 committed by GitHub
parent 6cbfb70df5
commit e8de8934d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -395,7 +395,8 @@ $(document).ready(() => {
(event.key?.toLowerCase() === "p" &&
(event.metaKey || event.ctrlKey) &&
event.shiftKey) ||
(event.key === "Tab" && Config.quickRestart === "esc")) &&
((event.key === "Tab" || event.key === "Escape") &&
Config.quickRestart === "esc")) &&
!$("#commandLineWrapper").hasClass("hidden")
) {
if (CommandlineLists.current.length > 1) {