Fix arrow keys not working in input fields in the drive

pull/1/head
yflory 6 years ago
parent 26e8cea545
commit 37a79a0141

@ -589,6 +589,7 @@ define([
// Arrow keys to modify the selection // Arrow keys to modify the selection
$(window).keydown(function (e) { $(window).keydown(function (e) {
var $searchBar = $tree.find('#cp-app-drive-tree-search-input'); 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; } if ($searchBar.is(':focus') && $searchBar.val()) { return; }
var $elements = $content.find('.cp-app-drive-element:not(.cp-app-drive-element-header)'); var $elements = $content.find('.cp-app-drive-element:not(.cp-app-drive-element-header)');

Loading…
Cancel
Save