Opened 11 years ago
Closed 11 years ago
#11575 closed Bug (duplicate)
Replace keypress with other events
Reported by: | Björn Weinbrenner | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
According the official W3C specification the event 'keypress' is deprecated (http://www.w3.org/TR/DOM-Level-3-Events/#event-type-keypress). Some modern mobile browsers (Android, Windows) don't support this event. Alternative events are keydown, keyup, input or textInput (supported by some browsers but not specified), beforeinput (specified but not supported by browsers). CKEditor uses keypress at some places and causes problems on mobile devices. One place is the UndoManager (plugins/undo/plugin.js) so that the 'change' event isn't fired properly on mobile devices.
editor.editable().on( 'keypress', function( event ) { undoManager.type( event.data.getKey(), 1 ); } );
Change History (1)
comment:1 Changed 11 years ago by
Keywords: | event keypress mobile removed |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Version: | 4.3.2 |
DUP of #10926