Skip to content

Commit

Permalink
chore(search-bar): add comment handlerKayboard
Browse files Browse the repository at this point in the history
  • Loading branch information
aesteves60 authored and dpellier committed Aug 4, 2023
1 parent 9b04b49 commit 84070ec
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export class OsdsSearchBar implements OdsSearchBar<OdsStencilMethods<OdsSearchBa
this.value = event.detail.value?.toString() ?? '';
}

// should by handler by the button and just listen the click event
handlerOnKeydownInput(event: KeyboardEvent): void {
const isEnter = event.code.includes('Enter');
const isSpace = event.code.includes('Space');
Expand Down

0 comments on commit 84070ec

Please sign in to comment.