projects
/
cinny.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d25c3ff
)
Add cmd + k hotkey for mac os
author
Ajay Bura
<ajbura@gmail.com>
Fri, 11 Mar 2022 08:44:57 +0000
(14:14 +0530)
committer
Ajay Bura
<ajbura@gmail.com>
Fri, 11 Mar 2022 08:44:57 +0000
(14:14 +0530)
Signed-off-by: Ajay Bura <ajbura@gmail.com>
src/client/event/hotkeys.js
patch
|
blob
|
history
diff --git
a/src/client/event/hotkeys.js
b/src/client/event/hotkeys.js
index c606dbb3d146c9f8370205c9d89586717e39dacf..41b6fc8f5e7ca448f26c8d72c0cb0281fc830da5 100644
(file)
--- a/
src/client/event/hotkeys.js
+++ b/
src/client/event/hotkeys.js
@@
-2,8
+2,8
@@
import { openSearch, toggleRoomSettings } from '../action/navigation';
import navigation from '../state/navigation';
function listenKeyboard(event) {
- // Ctrl +
- if (event.ctrlKey) {
+ // Ctrl
/Cmd
+
+ if (event.ctrlKey
|| event.metaKey
) {
// k - for search Modal
if (event.keyCode === 75) {
event.preventDefault();