Skip to content

Commit 507312a

Browse files
authored
Merge pull request #69876 from sbatten/fix/69830
fix/69830
2 parents 5338ec7 + 988bbc7 commit 507312a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/vs/base/browser/ui/menu/menubar.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,16 @@ class ModifierKeyEmitter extends Emitter<IModifierKeyStatus> {
954954
this._keyStatus.lastKeyPressed = undefined;
955955
}));
956956

957+
this._subscriptions.push(domEvent(document.body, 'mouseup', true)(e => {
958+
this._keyStatus.lastKeyPressed = undefined;
959+
}));
960+
961+
this._subscriptions.push(domEvent(document.body, 'mousemove', true)(e => {
962+
if (e.buttons) {
963+
this._keyStatus.lastKeyPressed = undefined;
964+
}
965+
}));
966+
957967
this._subscriptions.push(domEvent(window, 'blur')(e => {
958968
this._keyStatus.lastKeyPressed = undefined;
959969
this._keyStatus.lastKeyReleased = undefined;

0 commit comments

Comments
 (0)