mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
@@ -1543,6 +1543,16 @@ export class ModifierKeyEmitter extends Emitter<IModifierKeyStatus> {
|
||||
return this._keyStatus;
|
||||
}
|
||||
|
||||
// This method is a workaround because we do not get keyboard events while a context menu is shown #109062
|
||||
resetKeyStatus(): void {
|
||||
this._keyStatus = {
|
||||
altKey: false,
|
||||
shiftKey: false,
|
||||
ctrlKey: false
|
||||
};
|
||||
this.fire(this._keyStatus);
|
||||
}
|
||||
|
||||
static getInstance() {
|
||||
if (!ModifierKeyEmitter.instance) {
|
||||
ModifierKeyEmitter.instance = new ModifierKeyEmitter();
|
||||
|
||||
Reference in New Issue
Block a user