From 3c4b6a89d2ca7b7685a94474421ed571e58c5cc0 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 10 May 2017 14:48:15 +0200 Subject: [PATCH] Fix a conflict with the arrow keys and renaming a folder in the tree --- www/drive/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www/drive/main.js b/www/drive/main.js index 9e88fc5f0..97a48d79d 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -523,6 +523,10 @@ define([ placeholder: name, value: name }).data('path', path); + + // Stop propagation on keydown to avoid issues with arrow keys + $input.on('keydown', function (e) { e.stopPropagation(); }); + $input.on('keyup', function (e) { if (e.which === 13) { removeInput(true);