Changeset 1452 for trunk/modules


Ignore:
Timestamp:
11/05/19 09:14:38 (5 months ago)
Author:
gogo
Message:

Add UseStrongEm? to the manifest.
Small correction for keypress where chrome (at least) reports both . and delete as code 46 for some reason.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/WebKit/WebKit.js

    r1402 r1452  
    5252WebKit.prototype.onKeyPress = function(ev) 
    5353{ 
     54   
    5455  var editor = this.editor; 
    5556  var s = editor.getSelection(); 
     
    221222    case 46: // KEY delete 
    222223      // We handle the mozilla backspace directly?? 
    223       if ( !ev.shiftKey && this.handleBackspace() ) 
    224       { 
    225         Xinha._stopEvent(ev); 
    226       } 
    227     break; 
     224       
     225      // In some situations 46 is delete, in other situations it is '.' 
     226      //  make sure it's not the latter :-/ 
     227      if(editor.getKey(ev) != '.') 
     228      { 
     229        if ( !ev.shiftKey && this.handleBackspace() ) 
     230        { 
     231          Xinha._stopEvent(ev); 
     232        } 
     233        break; 
     234      } 
     235       
    228236    default: 
    229237        editor._unlinkOnUndo = false; 
Note: See TracChangeset for help on using the changeset viewer.