diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-06-09 19:49:11 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-06-09 19:49:11 +0200 |
commit | 51cae1f5eca6d2e0d957be6f2476aa0898a266e0 (patch) | |
tree | 3df6d42c924021173feb593b33b123e92f6e0cee /program/js/common.js | |
parent | 13b33da51a70300f9080a643b25cf2c474322fbe (diff) |
Fix keyboard event detection in Opera (#1489929)
Diffstat (limited to 'program/js/common.js')
-rw-r--r-- | program/js/common.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/program/js/common.js b/program/js/common.js index f4446c21c..76643068d 100644 --- a/program/js/common.js +++ b/program/js/common.js @@ -288,6 +288,7 @@ is_keyboard: function(e) return e && ( (e.pointerType !== undefined && e.pointerType !== 'mouse') || // IE 11+ (e.mozInputSource && e.mozInputSource == e.MOZ_SOURCE_KEYBOARD) || // Firefox + (e.offsetX === 0 && e.offsetY === 0) || // Opera (!e.pageX && (e.pageY || 0) <= 0 && !e.clientX && (e.clientY || 0) <= 0) || // others (bw.ie && rcube_event._last_keyboard_event && rcube_event._last_keyboard_event.target == e.target) // hack for IE <= 10 ); |