1
0
mirror of https://github.com/salexdv/bsl_console.git synced 2024-11-30 08:57:08 +02:00

Исправление глюка, когда при CTRL+F3 слово не вставляется в окно поиска #127

This commit is contained in:
salexdv 2021-05-20 17:31:27 +03:00
parent 8c7351bc5a
commit 70de8fd02f
2 changed files with 31 additions and 1 deletions

View File

@ -22,6 +22,24 @@
}
.editor-widget.find-widget.visible {
min-height: 33px;
}
.editor-widget.find-widget.visible .input {
min-height: 24px;
}
.editor-widget.find-widget.visible.replaceToggled {
min-height: 62px;
}
.suggest-widget .monaco-list .monaco-list-row .inactive-detail {
display: inline !important;

View File

@ -962,7 +962,7 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit
editor.trigger('', 'actions.find');
setFindWidgetDisplay('inherit');
document.querySelector('.find-widget .input').focus();
document.querySelector('.find-widget .input').focus();
}
@ -1267,6 +1267,18 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit
if (document.querySelector('.find-widget'))
setFindWidgetDisplay('none');
}
else if (e.keyCode == 61) {
// F3
if (!e.altKey && !e.shiftKey) {
if (e.ctrlKey) {
editor.trigger('', 'actions.find');
previousMatch();
}
else
editor.trigger('', 'editor.action.findWithSelection');
setFindWidgetDisplay('inherit');
}
}
if (e.ctrlKey)
ctrlPressed = true;