Browse Source

doc: add state && event argument

Tienson Qin 4 years ago
parent
commit
bc759d0a28
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/modules/shortcut/core.cljs

+ 1 - 1
src/main/frontend/modules/shortcut/core.cljs

@@ -28,7 +28,7 @@
   conflicts.
   Example:
   (register-shortcut! :shortcut.handler/misc :foo/bar {:binding \"mod+shift+8\"
-     :fn (fn []
+     :fn (fn [_state _event]
      (js/alert \"test shortcut\"))})"
   ([handler-id id]
    (register-shortcut! handler-id id nil))