Commit b6c88b92 authored by JC Brand's avatar JC Brand

Don't listen exclusively for keypress in a textarea

Could be a different element as well.
parent a55515d7
......@@ -96,7 +96,7 @@
events: {
'click .close-chatbox-button': 'close',
'keypress textarea.chat-textarea': 'keyPressed',
'keypress .chat-textarea': 'keyPressed',
'click .toggle-smiley': 'toggleEmoticonMenu',
'click .toggle-smiley ul li': 'insertEmoticon',
'click .toggle-clear': 'clearMessages',
......
......@@ -242,7 +242,7 @@
'click .toggle-occupants a': 'toggleOccupants',
'click .new-msgs-indicator': 'viewUnreadMessages',
'click .occupant': 'onOccupantClicked',
'keypress textarea.chat-textarea': 'keyPressed'
'keypress .chat-textarea': 'keyPressed'
},
initialize: function () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment