Skip to content
Snippets Groups Projects
Commit ab788d5f authored by Gabriel Engel's avatar Gabriel Engel
Browse files

Merge pull request #2798 from RocketChat/hotfix/spotlight-hotkey

RocketChat hijacking Firefox shortcut
parents 217260db 6915fbac
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ Template.body.onRendered -> ...@@ -2,7 +2,7 @@ Template.body.onRendered ->
new Clipboard('.clipboard') new Clipboard('.clipboard')
$(document.body).on 'keydown', (e) -> $(document.body).on 'keydown', (e) ->
if e.keyCode is 80 and (e.ctrlKey is true or e.metaKey is true) if e.keyCode is 80 and (e.ctrlKey is true or e.metaKey is true) and e.shiftKey is false
e.preventDefault() e.preventDefault()
e.stopPropagation() e.stopPropagation()
spotlight.show() spotlight.show()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment