Changeset 262 for branches

Show
Ignore:
Timestamp:
03/25/08 23:07:00 (8 months ago)
Author:
miyagawa
Message:

apply the fix to avoid Safari triggering onKeyUp events when entering non-ASCII languages like Japanese. bugid:68265

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/vox-41/common/Editor/Iframe.js

    r199 r262  
    3838        // clear out the document completely 
    3939        this.document.body.innerHTML = " "; 
     40 
     41        this.isWebKit = navigator.userAgent.toLowerCase().match(/webkit/); 
    4042    }, 
    4143    
     
    156158     */ 
    157159    eventKeyUp: function( event ) { 
     160        /* safari always makes this event. ignore for language input method */ 
     161        if ( this.isWebKit ) { 
     162            return false; 
     163        } 
    158164        this.monitorSelection( event ); 
    159165    },