From 134cbf70dfbc49869bf8244ad5dc4068c033ac09 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Mon, 27 Aug 2018 16:03:09 +0200 Subject: [PATCH] Fixes #54108 --- src/vs/editor/contrib/hover/hover.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/editor/contrib/hover/hover.ts b/src/vs/editor/contrib/hover/hover.ts index cfef3c6c719..655df41ddda 100644 --- a/src/vs/editor/contrib/hover/hover.ts +++ b/src/vs/editor/contrib/hover/hover.ts @@ -191,8 +191,8 @@ export class ModesHoverController implements IEditorContribution { } private _onKeyDown(e: IKeyboardEvent): void { - if (e.keyCode !== KeyCode.Ctrl && e.keyCode !== KeyCode.Alt && e.keyCode !== KeyCode.Meta) { - // Do not hide hover when Ctrl/Meta is pressed + if (e.keyCode !== KeyCode.Ctrl && e.keyCode !== KeyCode.Alt && e.keyCode !== KeyCode.Meta && e.keyCode !== KeyCode.Shift) { + // Do not hide hover when a modifier key is pressed this._hideWidgets(); } }