summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/list.js
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-09-22 20:51:42 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-09-22 20:51:42 +0000
commite917f4cf83dc4f6bb67b70f5d85dc6f95e685bf9 (patch)
treeaef0241586c8ac42119cb28afeed94942224f869 /roundcubemail/program/js/list.js
parent6ec55e13b3be53d41c59cb215bc1c84ac7d7ddb8 (diff)
Ignore events from form elements
git-svn-id: https://svn.roundcube.net/trunk@5271 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/list.js')
-rw-r--r--roundcubemail/program/js/list.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/roundcubemail/program/js/list.js b/roundcubemail/program/js/list.js
index f0e1c9bc1..0d124ac7c 100644
--- a/roundcubemail/program/js/list.js
+++ b/roundcubemail/program/js/list.js
@@ -954,7 +954,8 @@ highlight_row: function(id, multiple)
*/
key_press: function(e)
{
- if (this.focused != true)
+ var target = e.target || {};
+ if (this.focused != true || target.nodeName == 'INPUT' || target.nodeName == 'TEXTAREA' || target.nodeName == 'SELECT')
return true;
var keyCode = rcube_event.get_keycode(e),
@@ -1004,13 +1005,17 @@ key_press: function(e)
*/
key_down: function(e)
{
+ var target = e.target || {};
+ if (this.focused != true || target.nodeName == 'INPUT' || target.nodeName == 'TEXTAREA' || target.nodeName == 'SELECT')
+ return true;
+
switch (rcube_event.get_keycode(e)) {
case 27:
if (this.drag_active)
- return this.drag_mouse_up(e);
+ return this.drag_mouse_up(e);
if (this.col_drag_active) {
this.selected_column = null;
- return this.column_drag_mouse_up(e);
+ return this.column_drag_mouse_up(e);
}
case 40: