Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Issue 21030004: Add support for KeyboardEvent.getModifierState() (Closed)

Created:
7 years, 4 months ago by do-not-use
Modified:
7 years, 4 months ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, adamk+blink_chromium.org, lgombos, Wez, garykac
Visibility:
Public.

Description

Add support for KeyboardEvent.getModifierState() Add support for KeyboardEvent.getModifierState() as per the latest specification: http://www.w3.org/TR/DOM-Level-3-Events/#events-KeyboardEvent-getModifierState Note that only the following modifiers are currently supported (crbug.com/265458): "Control", "Alt", "Shift", "Meta". BUG=263724 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155158

Patch Set 1 #

Patch Set 2 : Fix typo #

Patch Set 3 : Rebase on master #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -0 lines) Patch
A LayoutTests/fast/events/keyboardevent-getModifierState.html View 1 1 chunk +61 lines, -0 lines 2 comments Download
A LayoutTests/fast/events/keyboardevent-getModifierState-expected.txt View 1 chunk +136 lines, -0 lines 0 comments Download
M Source/core/dom/KeyboardEvent.cpp View 1 chunk +2 lines, -0 lines 1 comment Download
M Source/core/dom/KeyboardEvent.idl View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
do-not-use
7 years, 4 months ago (2013-07-29 13:57:36 UTC) #1
Mike West
Can you upload the patch again? I'm seeing "chunk mismatch", which means Reitveld went crazy. ...
7 years, 4 months ago (2013-07-29 14:01:06 UTC) #2
do-not-use
On 2013/07/29 14:01:06, Mike West wrote: > Can you upload the patch again? I'm seeing ...
7 years, 4 months ago (2013-07-29 14:04:06 UTC) #3
Mike West
LGTM, thanks for filing the followup bug for the pieces that aren't working yet.
7 years, 4 months ago (2013-07-29 14:09:34 UTC) #4
garykac
lgtm https://codereview.chromium.org/21030004/diff/11001/Source/core/dom/KeyboardEvent.cpp File Source/core/dom/KeyboardEvent.cpp (right): https://codereview.chromium.org/21030004/diff/11001/Source/core/dom/KeyboardEvent.cpp#newcode161 Source/core/dom/KeyboardEvent.cpp:161: // "AltGraph", "CapsLock", "Fn", "NumLock", "ScrollLock", "SymbolLock", "OS". ...
7 years, 4 months ago (2013-07-29 16:18:00 UTC) #5
ojan
lgtm
7 years, 4 months ago (2013-07-29 22:05:35 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/21030004/11001
7 years, 4 months ago (2013-07-30 06:03:51 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/21030004/11001
7 years, 4 months ago (2013-07-30 10:27:11 UTC) #8
commit-bot: I haz the power
Change committed as 155158
7 years, 4 months ago (2013-07-30 10:50:04 UTC) #9
arv (Not doing code reviews)
7 years, 4 months ago (2013-07-31 16:22:54 UTC) #10
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/21030004/diff/11001/LayoutTests/fast/e...
File LayoutTests/fast/events/keyboardevent-getModifierState.html (right):

https://chromiumcodereview.appspot.com/21030004/diff/11001/LayoutTests/fast/e...
LayoutTests/fast/events/keyboardevent-getModifierState.html:14: ev = ev ||
event;
why?

event is not defined (unless you count the deprecated window.event IE-ism)

https://chromiumcodereview.appspot.com/21030004/diff/11001/LayoutTests/fast/e...
LayoutTests/fast/events/keyboardevent-getModifierState.html:15: ev.keyCode =
(ev.which || ev.keyCode);
This looks bad. Why are we assigning keyCode to `which`? Isn't `which` just an
NN4-ism?

Powered by Google App Engine
This is Rietveld 408576698