From c2b626aa5348a283ea23360a3e7f6bd41a2bb4c6 Mon Sep 17 00:00:00 2001 From: salexdv Date: Mon, 21 Feb 2022 08:46:32 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D1=81=D1=82=D0=B0=D1=80=D1=8B=D1=85=20=D0=BA=D1=83?= =?UTF-8?q?=D1=81=D0=BA=D0=BE=D0=B2=20=D0=BA=D0=BE=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/editor.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/editor.js b/src/editor.js index 1a4e18e..ec381e3 100644 --- a/src/editor.js +++ b/src/editor.js @@ -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 => {