mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
space key as click (#8437)
This commit is contained in:
@@ -41,7 +41,7 @@ export default class CardComponent extends ComponentWithIconBase implements ICom
|
|||||||
this._register(this.themeService.onDidColorThemeChange(this.updateTheme, this));
|
this._register(this.themeService.onDidColorThemeChange(this.updateTheme, this));
|
||||||
this.updateTheme(this.themeService.getColorTheme());
|
this.updateTheme(this.themeService.getColorTheme());
|
||||||
this.onkeydown(this._el.nativeElement, (e: StandardKeyboardEvent) => {
|
this.onkeydown(this._el.nativeElement, (e: StandardKeyboardEvent) => {
|
||||||
if (e.keyCode === KeyCode.Enter) {
|
if (e.keyCode === KeyCode.Enter || e.keyCode === KeyCode.Space) {
|
||||||
this.onCardClick();
|
this.onCardClick();
|
||||||
DOM.EventHelper.stop(e, true);
|
DOM.EventHelper.stop(e, true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user