From 37a79a01418502fc4a889247d879b55eebbc95f2 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 18 Feb 2019 15:15:53 +0100 Subject: [PATCH] Fix arrow keys not working in input fields in the drive --- www/drive/inner.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/drive/inner.js b/www/drive/inner.js index 16d30dcc9..956ec6a5d 100644 --- a/www/drive/inner.js +++ b/www/drive/inner.js @@ -589,6 +589,7 @@ define([ // Arrow keys to modify the selection $(window).keydown(function (e) { var $searchBar = $tree.find('#cp-app-drive-tree-search-input'); + if (document.activeElement && document.activeElement.nodeName === 'INPUT') { return; } if ($searchBar.is(':focus') && $searchBar.val()) { return; } var $elements = $content.find('.cp-app-drive-element:not(.cp-app-drive-element-header)');