Enhance: Introduce customizable close window shortcut (#10190)

* add close window shortcut

* suppress build warnings

* add window ns docstring
This commit is contained in:
Konstantinos
2023-09-14 17:23:03 +03:00
committed by GitHub
parent 8ac30c1fd8
commit 89a489571f
5 changed files with 36 additions and 25 deletions

View File

@@ -16,6 +16,7 @@
[frontend.handler.export :as export-handler]
[frontend.handler.whiteboard :as whiteboard-handler]
[frontend.handler.plugin-config :as plugin-config-handler]
[frontend.handler.window :as window-handler]
[frontend.modules.editor.undo-redo :as undo-redo]
[frontend.dicts :as dicts]
[frontend.modules.shortcut.before :as m]
@@ -497,6 +498,10 @@
:inactive (not (util/electron?))
:fn #(page-handler/copy-page-url)}
:window/close {:binding "mod+w"
:inactive (not (util/electron?))
:fn window-handler/close!}
:ui/toggle-wide-mode {:binding "t w"
:fn ui-handler/toggle-wide-mode!}
@@ -706,6 +711,7 @@
:editor/open-file-in-directory
:editor/copy-current-file
:editor/copy-page-url
:window/close
:editor/new-whiteboard
:ui/toggle-wide-mode
:ui/select-theme-color
@@ -883,6 +889,7 @@
:editor/open-file-in-default-app
:editor/open-file-in-directory
:editor/copy-page-url
:window/close
:auto-complete/prev
:auto-complete/next
:auto-complete/complete