New issue
Advanced search Search tips

Issue 611682 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: May 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

KeyboardEvents are not fied when you press a multimedia key or a browser navigation key which causes WM_APPCOMMAND message

Reported by dtoybo...@gmail.com, May 13 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2734.0 Safari/537.36

Example URL:
https://dvcs.w3.org/hg/d4e/raw-file/tip/key-event-test.html

Steps to reproduce the problem:
1. Go to https://dvcs.w3.org/hg/d4e/raw-file/tip/key-event-test.html
2. (Click "Show Options" and check the "keydown" of "preventDefault" for easier to test)
3. Press a multimedia key (e.g., media player key or play/pause key) or a browser navigation key (e.g., back, forward, etc).

What is the expected behavior?
These keypress should cause keydown and keyup events with proper KeyboardEvent.key value.

What went wrong?
No keyboard events are fired on Chrome Canary.

Looks like Chromium ignores the device information of WM_APPCOMMAND here:
https://code.google.com/p/chromium/codesearch#chromium/src/ui/views/win/hwnd_message_handler.cc&q=OnAppCommand&sq=package:chromium&type=cs&l=1258

> BOOL HWNDMessageHandler::OnAppCommand(HWND window,
>                                       short command,
>                                       WORD device,
>                                       int keystate) {
>   BOOL handled = !!delegate_->HandleAppCommand(command);

Firefox fixed this bug at: https://bugzilla.mozilla.org/show_bug.cgi?id=865561

Current code of Firefox is here:
https://dxr.mozilla.org/mozilla-central/rev/c3f5e6079284a7b7053c41f05d0fe06ff031db03/widget/windows/KeyboardLayout.cpp#1360,1376,1388,1393,1397-1398,1475,1480,1484-1485

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? No 

Does this work in other browsers? Yes 

Chrome version: 52.0.2734.0  Channel: canary
OS Version: 10.0
Flash Version: Shockwave Flash 22.0 r0
 

Comment 1 by dtoybo...@gmail.com, May 13 2016

Note that when you test this, you should ensure that there is no special keyboard related utilities on your system. For example, if Microsoft Mouse and Keyboard Center is installed, multimedia keys are consumed or overridden with other keyboard events by it.

Comment 2 by dtoybo...@gmail.com, May 13 2016

Oops, I'm sorry, I double-checked this issue with other environments. Then, Chrome Canary fires keyboard events with on other machines.

Sorry for the spam. Please close this issue.
Status: WontFix (was: Unconfirmed)
Closing as per comment #2.

dtoybox69@ feel free to cc me on any keyboard issues; or set the Blink>Input component if you can; otherwise they end up in our general triage bucket which has a slightly lower SLA than the more specific components.

Comment 4 by dtoybo...@gmail.com, May 18 2016

> dtoybox69@ feel free to cc me on any keyboard issues; or set the Blink>Input component if you can; otherwise they end up in our general triage bucket which has a slightly lower SLA than the more specific components.

I'm not sure how to cc in this issue tracker nor specifying the detail of component (When I press "New issue" button, "New issue wizard" opens and it cannot specify the detail of the component.

Sign in to add a comment