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

Issue 2309983003: Ignore key events in renaming inputs when the keyCode is VK_PROCESSKEY(229). (Closed)

Created:
4 years, 3 months ago by fukino
Modified:
4 years, 3 months ago
Reviewers:
Seigo Nonaka
CC:
chromium-reviews, oka+watch_chromium.org, rginda+watch_chromium.org, mtomasz+watch_chromium.org, yamaguchi+watch_chromium.org, fukino+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ignore key events in renaming inputs when the keyCode is VK_PROCESSKEY(229). When the key events are consumed by IME, the keyCode in KeyboardEvent.keyCode is VK_PROCESSKEY, but KeyboardEvent.key can be the original key, like 'Enter'. As a workaround, we look into keyCode to ignore the consumed key events not to commit unwanted changes in rename inputs, although the keyCode is deprecated. BUG=644071 TEST=manually tested using the repro steps described in the bug. Committed: https://crrev.com/bb7c1663e15a122a64f94f5fac7ca8fdbdf7ec06 Cr-Commit-Position: refs/heads/master@{#416887}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -0 lines) Patch
M ui/file_manager/file_manager/foreground/js/directory_tree_naming_controller.js View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/naming_controller.js View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
fukino
nona@, could you take a look? Thanks!
4 years, 3 months ago (2016-09-06 12:06:56 UTC) #2
Seigo Nonaka
lgtm with a minor nit. /the keyCode is KeyboardEvent.keyCode/the keyCode in KeyboardEvent.keyCode/ maybe?
4 years, 3 months ago (2016-09-07 08:28:32 UTC) #3
fukino
Updated the description. Thanks!
4 years, 3 months ago (2016-09-07 08:34:46 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2309983003/1
4 years, 3 months ago (2016-09-07 08:35:02 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-07 09:23:07 UTC) #9
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 09:26:36 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/bb7c1663e15a122a64f94f5fac7ca8fdbdf7ec06
Cr-Commit-Position: refs/heads/master@{#416887}

Powered by Google App Engine
This is Rietveld 408576698