mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 09:35:39 -05:00
fix issue that user is not able to interact with checkbox in declarative table using keyboard (#14863)
* handle space key press * correct fix
This commit is contained in:
@@ -331,6 +331,10 @@ export default class DeclarativeTableComponent extends ContainerBase<any, azdata
|
||||
}
|
||||
|
||||
public onKey(e: KeyboardEvent, row: number) {
|
||||
// Ignore the bubble up events
|
||||
if (e.target !== e.currentTarget) {
|
||||
return;
|
||||
}
|
||||
const event = new StandardKeyboardEvent(e);
|
||||
if (event.equals(KeyCode.Enter) || event.equals(KeyCode.Space)) {
|
||||
this.onRowSelected(row);
|
||||
|
||||
Reference in New Issue
Block a user