Changeset ebee2ab in github


Ignore:
Timestamp:
Sep 22, 2011 4:51:42 PM (20 months ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.7, release-0.8
Children:
f8ca748
Parents:
487173e
Message:

Ignore events from form elements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/js/list.js

    r699a25a rebee2ab  
    955955key_press: function(e) 
    956956{ 
    957   if (this.focused != true) 
     957  var target = e.target || {}; 
     958  if (this.focused != true || target.nodeName == 'INPUT' || target.nodeName == 'TEXTAREA' || target.nodeName == 'SELECT') 
    958959    return true; 
    959960 
     
    10051006key_down: function(e) 
    10061007{ 
     1008  var target = e.target || {}; 
     1009  if (this.focused != true || target.nodeName == 'INPUT' || target.nodeName == 'TEXTAREA' || target.nodeName == 'SELECT') 
     1010    return true; 
     1011   
    10071012  switch (rcube_event.get_keycode(e)) { 
    10081013    case 27: 
    10091014      if (this.drag_active) 
    1010             return this.drag_mouse_up(e); 
     1015      return this.drag_mouse_up(e); 
    10111016      if (this.col_drag_active) { 
    10121017        this.selected_column = null; 
    1013             return this.column_drag_mouse_up(e); 
     1018        return this.column_drag_mouse_up(e); 
    10141019      } 
    10151020 
Note: See TracChangeset for help on using the changeset viewer.