Ignore events from form elements

release-0.7
thomascube 13 years ago
parent 487173ed08
commit ebee2ab26e

@ -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,6 +1005,10 @@ 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)

Loading…
Cancel
Save