Fix arrow keys not working in input fields in the drive

This commit is contained in:
yflory 2019-02-18 15:15:53 +01:00
parent 26e8cea545
commit 37a79a0141

View file

@ -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)');