mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 18:06:32 +00:00
Enhance: Introduce customizable close window shortcut (#10190)
* add close window shortcut * suppress build warnings * add window ns docstring
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user