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

Unified Diff: ui/file_manager/file_manager/foreground/js/directory_tree_naming_controller.js

Issue 2321603003: Ignore key events in renaming inputs when the keyCode is VK_PROCESSKEY(229). (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/file_manager/file_manager/foreground/js/naming_controller.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/directory_tree_naming_controller.js
diff --git a/ui/file_manager/file_manager/foreground/js/directory_tree_naming_controller.js b/ui/file_manager/file_manager/foreground/js/directory_tree_naming_controller.js
index 3968879cfa210c133b580e3f7552a62dfda86619..84278d5a0f13d0421d593a774f62c04e7168c239 100644
--- a/ui/file_manager/file_manager/foreground/js/directory_tree_naming_controller.js
+++ b/ui/file_manager/file_manager/foreground/js/directory_tree_naming_controller.js
@@ -188,6 +188,11 @@ DirectoryTreeNamingController.prototype.detach_ = function() {
* @private
*/
DirectoryTreeNamingController.prototype.onKeyDown_ = function(event) {
+ // Ignore key events if event.keyCode is VK_PROCESSKEY(229).
+ // TODO(fukino): Remove this workaround once crbug.com/644140 is fixed.
+ if (event.keyCode === 229)
+ return;
+
event.stopPropagation();
switch (util.getKeyModifiers(event) + event.key) {
« no previous file with comments | « no previous file | ui/file_manager/file_manager/foreground/js/naming_controller.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698