diff -ur fckeditor.orig/editor/_source/classes/fckkeystrokehandler.js fckeditor/editor/_source/classes/fckkeystrokehandler.js
old
|
new
|
|
36 | 36 | // For newer browsers, it is enough to listen to the keydown event only. |
37 | 37 | // Some browsers instead, don't cancel key events in the keydown, but in the |
38 | 38 | // keypress. So we must do a longer trip in those cases. |
39 | | FCKTools.AddEventListenerEx( target, 'keydown', _FCKKeystrokeHandler_OnKeyDown, this ) ; |
40 | | if ( FCKBrowserInfo.IsGecko10 || FCKBrowserInfo.IsOpera || ( FCKBrowserInfo.IsGecko && FCKBrowserInfo.IsMac ) ) |
41 | | FCKTools.AddEventListenerEx( target, 'keypress', _FCKKeystrokeHandler_OnKeyPress, this ) ; |
| 39 | if ( FCKBrowserInfo.IsGecko && FCKBrowserInfo.IsMac ) |
| 40 | { |
| 41 | FCKTools.AddEventListenerEx( target, 'keypress', _FCKKeystrokeHandler_OnKeyDown, this ) ; |
| 42 | } |
| 43 | else |
| 44 | { |
| 45 | FCKTools.AddEventListenerEx( target, 'keydown', _FCKKeystrokeHandler_OnKeyDown, this ) ; |
| 46 | if ( FCKBrowserInfo.IsGecko10 || FCKBrowserInfo.IsOpera || ( FCKBrowserInfo.IsGecko && FCKBrowserInfo.IsMac ) ) |
| 47 | FCKTools.AddEventListenerEx( target, 'keypress', _FCKKeystrokeHandler_OnKeyPress, this ) ; |
| 48 | } |
42 | 49 | } |
43 | 50 | |
44 | 51 | /* |