fix keyboard input on calc example (#1639)

This commit is contained in:
Alexander 2023-11-14 16:39:37 +00:00 committed by GitHub
parent d4b0451d09
commit 62719c309a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,6 +62,7 @@ fn app(cx: Scope) -> Element {
div { id: "wrapper",
div { class: "app",
div { class: "calculator",
tabindex: "0",
onkeydown: handle_key_down_event,
div { class: "calculator-display", val.to_string() }
div { class: "calculator-keypad",