Opened 8 years ago
#17006 new Bug
Key event listener produce different key codes in Chrome and Firefox
Reported by: | Bjoern | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Core : Keystrokes | Version: | 4.6.2 |
Keywords: | key listener firefox keyCode | Cc: |
Description
Steps to reproduce
- Visit http://ckeditor.com/features in firefox and chrome
- Enter the following into console:
CKEDITOR.instances.ckdemo.on('key', function(event){ console.log("key-event-data: ", event.data); });
- Focus into CKEditor and press CTRL
- Console output:
in Firefox - keyCode: 17
in Chrome - keyCode: 1114129
Expected result
In Firefox the keyCode result should be 1114129 (like CKEDITOR.CTRL)
Actual result
In Firefox the keyCode result is 17
Other details (browser, OS, CKEditor version, installed plugins)
CKEditor:
Actual demo version on homepage http://ckeditor.com/features (4.6.2)
Browser:
Firefox: 53.0 (64bit)
Chrome: 58.0.3029.96 (64-bit)
OS:
Ubuntu 16.10