Skip to content

Commit

Permalink
Fix Firefox keyboard handling regression.
Browse files Browse the repository at this point in the history
  • Loading branch information
obuchtala committed Dec 3, 2015
1 parent 458dd28 commit e3d6173
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ui/Surface.js
Expand Up @@ -78,7 +78,12 @@ Surface.Prototype = function() {
if (!this.isIE) {
el.on('compositionstart', this.onCompositionStart);
}
if (!this.isIE) {

// Note: TextEvent in Chrome/Webkit is the easiest for us
// as it contains the actual inserted string.
// Though, it is not available in FF and not working properly in IE
// where we fall back to a ContentEditable backed implementation.
if (window.TextEvent && !this.isIE) {
el.on('textInput', this.onTextInput);
} else {
el.on('keypress', this.onTextInputShim);
Expand Down

0 comments on commit e3d6173

Please sign in to comment.