summaryrefslogtreecommitdiff
path: root/program/js/common.js
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-06-05 16:44:35 +0200
committerThomas Bruederli <thomas@roundcube.net>2014-06-05 16:44:35 +0200
commitbf33799377eab662f8f25365cf15f57cf6697947 (patch)
tree064e960000b124b1c3089b4a14497636d196f387 /program/js/common.js
parent3445ca1a4fbfa7a141872ecf1a5f59649b101ec9 (diff)
Navigate with arrow keys only in treelist widgets; fix keyboard event detection in IE; new text label to help screen readers
Diffstat (limited to 'program/js/common.js')
-rw-r--r--program/js/common.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/program/js/common.js b/program/js/common.js
index 5ac4febce..f4446c21c 100644
--- a/program/js/common.js
+++ b/program/js/common.js
@@ -31,7 +31,6 @@ var CONTROL_KEY = 1;
var SHIFT_KEY = 2;
var CONTROL_SHIFT_KEY = 3;
-
/**
* Default browser check class
* @constructor
@@ -287,8 +286,10 @@ cancel: function(evt)
is_keyboard: function(e)
{
return e && (
- (e.mozInputSource && e.mozInputSource == e.MOZ_SOURCE_KEYBOARD) ||
- (!e.pageX && (e.pageY || 0) <= 0 && !e.clientX && (e.clientY || 0) <= 0)
+ (e.pointerType !== undefined && e.pointerType !== 'mouse') || // IE 11+
+ (e.mozInputSource && e.mozInputSource == e.MOZ_SOURCE_KEYBOARD) || // Firefox
+ (!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
);
},