Skip to content

Commit 053334e

Browse files
authored
Standardize event handler naming to camelCase across evo components (#445)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 2d5e41f commit 053334e

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

packages/evo-marko/src/tags/evo-listbox/index.marko

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export interface Input<Index extends number | string | undefined>
4141
...htmlInput
4242
role="listbox"
4343
onKeyDown(e, target) {
44-
rovTabindex.onKeydown(e);
44+
rovTabindex.onKeyDown(e);
4545
4646
const newIndex = typeahead(e);
4747
if (newIndex !== -1) {

packages/evo-marko/src/tags/evo-menu/index.marko

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@ export interface Input<
110110
rovTabindex.onClick(value);
111111
(item.onClick || null)?.(e, target);
112112
}
113-
onKeydown(e, target) {
114-
rovTabindex.onKeydown(e);
113+
onKeyDown(e, target) {
114+
rovTabindex.onKeyDown(e);
115115
const newIndex = typeahead(e);
116116
if (newIndex !== -1) {
117117
rovTabindex.setFocusIndex(newIndex);
118118
}
119119
120-
(item.onKeydown || null)?.(e, target);
120+
(item.onKeyDown || null)?.(e, target);
121121
}
122122
data-value=value
123123
tabindex=(rovTabindex.isFocused(value) ? 0 : -1)

packages/evo-marko/src/tags/evo-tabs/index.marko

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export interface Input extends Marko.HTML.Div {
3838
(tab.onClick || null)?.(e, target);
3939
}
4040
onKeyDown(e, target) {
41-
(rovingTabIndex.onKeydown || null)?.(e);
41+
(rovingTabIndex.onKeyDown || null)?.(e);
4242
(tab.onKeyDown || null)?.(e, target);
4343
}
4444
tabindex=(rovingTabIndex.isFocused(i) ? 0 : -1)

packages/evo-marko/src/tags/tags/evo-expander/index.marko

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export interface Input {
8585
onFocusOut() {
8686
open = false;
8787
},
88-
onKeydown(e: KeyboardEvent) {
88+
onKeyDown(e: KeyboardEvent) {
8989
if (e.key === "Enter" || e.key === " ") {
9090
open = true;
9191
}

packages/evo-marko/src/tags/tags/evo-roving-tabindex/index.marko

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static function getValue(el: HTMLElement) {
5454
setSelected(value);
5555
focusValue = value;
5656
},
57-
onKeydown(e: KeyboardEvent) {
57+
onKeyDown(e: KeyboardEvent) {
5858
if (e.key === "Enter" || e.key === " ") {
5959
setSelected(focusValue);
6060
}

0 commit comments

Comments
 (0)