move focus into event system

This commit is contained in:
Evan Almloff committed 2022-05-03 16:44:53 -05:00
1 parent ce5ade9fa6
commit 23376fef8e
4 files changed
+100 -83

No files matched your search

+1
View File
@@ -20,6 +20,7 @@ fn Button(cx: Scope) -> Element {
justify_content: "center",
align_items: "center",
onkeydown: |_| state.modify(|s| !s),
onclick: |_| state.modify(|s| !s),
"{text}"
}