Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonathan Wilkes
purr-data
Commits
8b912975
Commit
8b912975
authored
May 21, 2021
by
Prakhar Agarwal
🎯
Browse files
Added cmd modifier
parent
7c4d2a36
Changes
1
Hide whitespace changes
Inline
Side-by-side
emscripten/project/purr-data/utils/actions.js
View file @
8b912975
...
...
@@ -176,6 +176,7 @@ function add_shortcuts(cid){
document
.
onkeydown
=
function
(
e
){
// Check modifiers
var
shortcut
=
e
.
ctrlKey
?
"
Ctrl+
"
:
""
;
shortcut
=
e
.
metaKey
?
"
Cmd+
"
:
""
;
shortcut
+=
e
.
shiftKey
?
"
Shift+
"
:
""
;
shortcut
+=
e
.
altKey
?
"
Alt+
"
:
""
;
// Add key
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment