Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8117

Show
Ignore:
Timestamp:
11/08/07 16:36:52 (1 year ago)
Author:
madrobby
Message:

script.aculo.us: Fix a regression with autocompleters not responding correctly to cursor keys on both Safari and IE. Closes #10107.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spinoffs/scriptaculous/CHANGELOG

    r8083 r8117  
     1* Fix a regression with autocompleters not responding correctly to cursor keys on both Safari and IE.  Closes #10107.  [thx Zman771] 
     2 
    13*V1.8.0* (November 6, 2007) 
    24 
  • spinoffs/scriptaculous/src/controls.js

    r8069 r8117  
    8787 
    8888    Event.observe(this.element, 'blur', this.onBlur.bindAsEventListener(this)); 
    89     Event.observe(this.element, 'keypress', this.onKeyPress.bindAsEventListener(this)); 
     89    Event.observe(this.element, 'keydown', this.onKeyPress.bindAsEventListener(this)); 
    9090  }, 
    9191 
     
    143143         this.markPrevious(); 
    144144         this.render(); 
    145          if(Prototype.Browser.WebKit) Event.stop(event); 
     145         Event.stop(event); 
    146146         return; 
    147147       case Event.KEY_DOWN: 
    148148         this.markNext(); 
    149149         this.render(); 
    150          if(Prototype.Browser.WebKit) Event.stop(event); 
     150         Event.stop(event); 
    151151         return; 
    152152      }