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

Unified Diff: ui/file_manager/file_manager/foreground/js/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 | « ui/file_manager/file_manager/foreground/js/directory_tree_naming_controller.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/naming_controller.js
diff --git a/ui/file_manager/file_manager/foreground/js/naming_controller.js b/ui/file_manager/file_manager/foreground/js/naming_controller.js
index edcdcaa5e64053d88b8c00c0b7c41505b3873940..3b9a3677463e2ee675cd3852792a651fda2fbb1a 100644
--- a/ui/file_manager/file_manager/foreground/js/naming_controller.js
+++ b/ui/file_manager/file_manager/foreground/js/naming_controller.js
@@ -212,6 +212,11 @@ NamingController.prototype.restoreItemBeingRenamed = function() {
* @private
*/
NamingController.prototype.onRenameInputKeyDown_ = 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;
+
if (!this.isRenamingInProgress())
return;
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/directory_tree_naming_controller.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698