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

Ticket #9666: 9666_patch.diff

File 9666_patch.diff, 467 bytes (added by russell@mile26.com, 9 months ago)

Patch to return keypress eventname

  • /Users/Russell/Rails/yozo/trunk/public/javascripts/prototype.js

    old new  
    38433843 
    38443844  function getDOMEventName(eventName) { 
    38453845    if (!Event.DOMEvents.include(eventName)) return "dataavailable"; 
    3846     return { keypress: "keydown" }[eventName] || eventName; 
     3846               return eventName; 
    38473847  } 
    38483848 
    38493849  function getCacheForID(id) {