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

Issue 368023003: Popup open and hide using Alt+KeyDown (Closed)

Created:
6 years, 5 months ago by Habib Virji
Modified:
6 years, 5 months ago
Reviewers:
keishi, tkent
CC:
blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Popup open and hide using Alt+KeyDown HTMLSelect to open popup when key combination alt+keydown. It does not select any element, just opens or hide popup. Once popup is open, default handler of the popup handles key event. For that reason hide popup is handled in PopupListBox. This behavior is compatible with firefox behavior. R=tkent, keishi BUG=383818 TEST=On Alt+keydown open popup and check if visible. On again press of Alt+keydown, close popup. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177834

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Total comments: 6

Patch Set 3 : Updated as per code review comments #

Patch Set 4 : Fixed mac tests #

Total comments: 9

Patch Set 5 : Structuring of code #

Total comments: 1

Patch Set 6 : Another patch for mac test fix #

Total comments: 1

Patch Set 7 : Review comments #

Patch Set 8 : "Build fix" #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -139 lines) Patch
A LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html View 1 2 3 1 chunk +66 lines, -0 lines 0 comments Download
A LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard-expected.txt View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
A LayoutTests/platform/mac/fast/forms/select/menulist-popup-open-hide-using-keyboard-expected.txt View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/html/HTMLSelectElement.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/html/HTMLSelectElement.cpp View 1 2 3 4 5 6 4 chunks +56 lines, -74 lines 0 comments Download
D Source/core/html/HTMLSelectElementWin.cpp View 1 1 chunk +0 lines, -61 lines 0 comments Download
M Source/core/rendering/RenderTheme.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/rendering/RenderThemeChromiumDefault.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/rendering/RenderThemeChromiumMac.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/PopupListBox.cpp View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
keishi
https://codereview.chromium.org/368023003/diff/1/LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html File LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html (right): https://codereview.chromium.org/368023003/diff/1/LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html#newcode5 LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html:5: <body> nit:extra space https://codereview.chromium.org/368023003/diff/1/LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html#newcode14 LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html:14: description('Test for opening select ...
6 years, 5 months ago (2014-07-03 07:13:38 UTC) #1
Habib Virji
Thanks keishi, will do the changes. Can you please clarify below quest as alt+down key ...
6 years, 5 months ago (2014-07-03 08:17:34 UTC) #2
keishi
https://codereview.chromium.org/368023003/diff/1/Source/core/html/HTMLSelectElement.cpp File Source/core/html/HTMLSelectElement.cpp (right): https://codereview.chromium.org/368023003/diff/1/Source/core/html/HTMLSelectElement.cpp#newcode1187 Source/core/html/HTMLSelectElement.cpp:1187: if (keyIdentifier == "Down" && event->isKeyboardEvent() && toKeyboardEvent(event)->altKey()) { ...
6 years, 5 months ago (2014-07-03 08:38:47 UTC) #3
Habib Virji
- RenderTheme and RenderThemeChromiumDefault includes a new function for setting alt key only for linux ...
6 years, 5 months ago (2014-07-03 17:24:04 UTC) #4
keishi
https://codereview.chromium.org/368023003/diff/20001/LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html File LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html (right): https://codereview.chromium.org/368023003/diff/20001/LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html#newcode22 LayoutTests/fast/forms/select/menulist-popup-open-hide-using-keyboard.html:22: shouldBeTrue('internals.isSelectPopupVisible(popup)'); You can pass true as the second argument ...
6 years, 5 months ago (2014-07-04 01:33:50 UTC) #5
Habib Virji
Thanks keishi. Updated as suggested, sorry for delay took time to figure out why it ...
6 years, 5 months ago (2014-07-08 12:21:32 UTC) #6
keishi
https://codereview.chromium.org/368023003/diff/100001/Source/core/html/HTMLSelectElement.cpp File Source/core/html/HTMLSelectElement.cpp (right): https://codereview.chromium.org/368023003/diff/100001/Source/core/html/HTMLSelectElement.cpp#newcode1117 Source/core/html/HTMLSelectElement.cpp:1117: bool HTMLSelectElement::handlePopupOpenKeyboardEvent(Event* event) HTMLSelectElement::handlePopupOpenKeyboardEvent has stuff not related to ...
6 years, 5 months ago (2014-07-09 03:38:21 UTC) #7
Habib Virji
@keishi: One query regarding popsMenuByReturnKey. In current code-> https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp&l=1228 This line gets true only in ...
6 years, 5 months ago (2014-07-09 09:12:34 UTC) #8
keishi
On 2014/07/09 09:12:34, Habib Virji wrote: > @keishi: One query regarding popsMenuByReturnKey. > > In ...
6 years, 5 months ago (2014-07-09 09:35:10 UTC) #9
Habib Virji
Thanks keishi, updated as suggested.. https://codereview.chromium.org/368023003/diff/100001/Source/core/html/HTMLSelectElement.cpp File Source/core/html/HTMLSelectElement.cpp (right): https://codereview.chromium.org/368023003/diff/100001/Source/core/html/HTMLSelectElement.cpp#newcode1117 Source/core/html/HTMLSelectElement.cpp:1117: bool HTMLSelectElement::handlePopupOpenKeyboardEvent(Event* event) On ...
6 years, 5 months ago (2014-07-09 09:49:39 UTC) #10
keishi
Looks like select-popup-pagekeys.html is failing. I'm gussing PageUp/Down shouldn't work on mac.
6 years, 5 months ago (2014-07-09 12:31:26 UTC) #11
Habib Virji
On 2014/07/09 12:31:26, keishi wrote: > Looks like select-popup-pagekeys.html is failing. I'm gussing PageUp/Down > ...
6 years, 5 months ago (2014-07-09 12:43:19 UTC) #12
keishi
LGTM https://codereview.chromium.org/368023003/diff/160001/Source/core/html/HTMLSelectElement.cpp File Source/core/html/HTMLSelectElement.cpp (right): https://codereview.chromium.org/368023003/diff/160001/Source/core/html/HTMLSelectElement.cpp#newcode1182 Source/core/html/HTMLSelectElement.cpp:1182: // Early return as for mac below handling ...
6 years, 5 months ago (2014-07-10 02:24:11 UTC) #13
tkent
web/ lgtm https://codereview.chromium.org/368023003/diff/120001/Source/web/PopupListBox.cpp File Source/web/PopupListBox.cpp (right): https://codereview.chromium.org/368023003/diff/120001/Source/web/PopupListBox.cpp#newcode247 Source/web/PopupListBox.cpp:247: hidePopup(); Probably we should do |return| after ...
6 years, 5 months ago (2014-07-10 02:26:55 UTC) #14
Habib Virji
On 2014/07/10 02:26:55, tkent wrote: > web/ lgtm > > https://codereview.chromium.org/368023003/diff/120001/Source/web/PopupListBox.cpp > File Source/web/PopupListBox.cpp (right): ...
6 years, 5 months ago (2014-07-10 08:15:16 UTC) #15
Habib Virji
The CQ bit was checked by habib.virji@samsung.com
6 years, 5 months ago (2014-07-10 08:15:17 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/habib.virji@samsung.com/368023003/180001
6 years, 5 months ago (2014-07-10 08:16:56 UTC) #17
Habib Virji
The CQ bit was unchecked by habib.virji@samsung.com
6 years, 5 months ago (2014-07-10 08:55:55 UTC) #18
Habib Virji
On 2014/07/10 08:16:56, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
6 years, 5 months ago (2014-07-10 08:56:17 UTC) #19
Habib Virji
The CQ bit was checked by habib.virji@samsung.com
6 years, 5 months ago (2014-07-10 09:16:47 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/habib.virji@samsung.com/368023003/200001
6 years, 5 months ago (2014-07-10 09:17:36 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-10 10:26:26 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-10 11:29:22 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/15748)
6 years, 5 months ago (2014-07-10 11:29:23 UTC) #24
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 5 months ago (2014-07-10 12:23:00 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/habib.virji@samsung.com/368023003/200001
6 years, 5 months ago (2014-07-10 12:24:05 UTC) #26
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-10 13:29:05 UTC) #27
commit-bot: I haz the power
6 years, 5 months ago (2014-07-10 14:35:44 UTC) #28
Message was sent while issue was closed.
Change committed as 177834

Powered by Google App Engine
This is Rietveld 408576698