Improve confirm modal keydown listeners

This commit is contained in:
yflory
2020-02-10 18:33:59 +01:00
parent c0e9e86a9e
commit 44de8a41a1
2 changed files with 5 additions and 2 deletions

View File

@@ -3345,7 +3345,9 @@ define([
// in history mode we want to focus the version number input
if (!history.isHistoryMode && !APP.mobile()) {
var st = $tree.scrollTop() || 0;
$tree.find('#cp-app-drive-tree-search-input').focus();
if (!$('.alertify').length) {
$tree.find('#cp-app-drive-tree-search-input').focus();
}
$tree.scrollTop(st);
}
$tree.find('#cp-app-drive-tree-search-input')[0].selectionStart = getSearchCursor();