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

Удаление старых кусков кода

This commit is contained in:
salexdv 2022-02-21 08:46:32 +03:00
parent 193fd1810d
commit c2b626aa53

View File

@ -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 => {