Skip to content
Snippets Groups Projects
Commit c6a22cfc authored by edwardmuel's avatar edwardmuel Committed by GitHub
Browse files

Ignore keypress if swipebox is open

parent a87a4028
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,8 @@ Template.body.onRendered ->
target = e.target
if /input|textarea|select/i.test(target.tagName)
return
if $.swipebox.isOpen
return
$inputMessage = $('textarea.input-message')
if 0 == $inputMessage.length
return
......
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