mirror of
https://github.com/salexdv/bsl_console.git
synced 2024-11-24 08:33:29 +02:00
Merge branch 'develop' of https://github.com/salexdv/bsl_console into develop
This commit is contained in:
commit
0d2f268e95
@ -2232,7 +2232,6 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit
|
||||
setTimeout(() => {
|
||||
generateEventWithSuggestData('EVENT_ON_SELECT_SUGGEST_ROW', 'selection', element);
|
||||
}, 10);
|
||||
// stopEventIfSuggestListIsClosed(e);
|
||||
}
|
||||
}
|
||||
else if (e.ctrlKey && (e.keyCode == 36 || e.keyCode == 38)) {
|
||||
@ -2269,7 +2268,6 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit
|
||||
setTimeout(() => {
|
||||
generateEventWithSuggestData('EVENT_ON_SELECT_SUGGEST_ROW', 'selection', element);
|
||||
}, 10);
|
||||
// stopEventIfSuggestListIsClosed(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2293,15 +2291,6 @@ define(['bslGlobals', 'bslMetadata', 'snippets', 'bsl_language', 'vs/editor/edit
|
||||
|
||||
}
|
||||
|
||||
// Prevent propagation of event to editor if SuggestList was closed in EVENT_ON_SELECT_SUGGEST_ROW event handler https://github.com/salexdv/bsl_console/issues/90
|
||||
function stopEventIfSuggestListIsClosed(e) {
|
||||
element = document.querySelector('.monaco-list-row.focused');
|
||||
if (!element) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
}
|
||||
}
|
||||
|
||||
function initContextMenuActions() {
|
||||
|
||||
contextActions.forEach(action => {
|
||||
|
Loading…
Reference in New Issue
Block a user