mirror of https://github.com/opensumi/core
fix: hide debug hover widget when esc pressed (#4487)
This commit is contained in:
parent
2a13cf55b5
commit
32faed75df
|
@ -138,7 +138,13 @@ export class DebugModel implements IDebugModel {
|
|||
|
||||
this.toDispose.pushAll([
|
||||
this.breakpointWidget,
|
||||
this.editor.onKeyDown(() => this.debugHoverWidget.hide({ immediate: false })),
|
||||
this.editor.onKeyDown((e) => {
|
||||
if (e.code === 'Escape' && !e.altKey && !e.shiftKey && !e.metaKey) {
|
||||
this.debugHoverWidget.hide({ immediate: true });
|
||||
} else {
|
||||
this.debugHoverWidget.hide({ immediate: false });
|
||||
}
|
||||
}),
|
||||
this.editor.onDidChangeModelContent(() => this.renderFrames()),
|
||||
this.debugSessionManager.onDidChange(() => this.renderFrames()),
|
||||
this.debugBreakpointsService.onDidFocusedBreakpoints(({ range }) => {
|
||||
|
|
Loading…
Reference in New Issue