Changeset 1452


Ignore:
Timestamp:
11/05/19 09:14:38 (12 days 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.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r1448 r1452  
    617617  UnFormat:             { url: _editor_url+'unsupported_plugins/UnFormat/UnFormat.js' }, 
    618618  UnsavedChanges:       { url: _editor_url+'plugins/UnsavedChanges/UnsavedChanges.js' }, 
     619  UseStrongEm:          { url: _editor_url+'plugins/UseStrongEm/UseStrongEm.js' }, 
    619620  WebKitResize:         { url: _editor_url+'plugins/WebKitResize/WebKitResize.js' }, 
    620621  WebKit:               { url: _editor_url+'modules/WebKit/WebKit.js' }, 
  • 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.