mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-28 01:25:39 -05:00
handle the keyboard event properly in hyperlink (#16508)
* handle the keyboard event properly in hyperlink * fix a couple more issues
This commit is contained in:
@@ -449,6 +449,7 @@ export abstract class Modal extends Disposable implements IThemable {
|
||||
if (context[context.length - 1] === this._staticKey) {
|
||||
let event = new StandardKeyboardEvent(e);
|
||||
if (event.equals(KeyCode.Enter)) {
|
||||
DOM.EventHelper.stop(e, true);
|
||||
this.onAccept(event);
|
||||
} else if (event.equals(KeyCode.Escape)) {
|
||||
DOM.EventHelper.stop(e, true);
|
||||
|
||||
Reference in New Issue
Block a user