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

  1. Visit http://ckeditor.com/features in firefox and chrome
  2. Enter the following into console:
    CKEDITOR.instances.ckdemo.on('key', function(event){
      console.log("key-event-data: ", event.data);
    });
    
  3. Focus into CKEditor and press CTRL
  4. 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

Change History (0)

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy