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:
parent
8c7351bc5a
commit
70de8fd02f
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user