mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 09:35:36 -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.updateTheme(this.themeService.getColorTheme());
|
||||
this.onkeydown(this._el.nativeElement, (e: StandardKeyboardEvent) => {
|
||||
if (e.keyCode === KeyCode.Enter) {
|
||||
if (e.keyCode === KeyCode.Enter || e.keyCode === KeyCode.Space) {
|
||||
this.onCardClick();
|
||||
DOM.EventHelper.stop(e, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user