Skip to content

Commit

Permalink
fix keyboard input on calc example (#1639)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderjophus authored Nov 14, 2023
1 parent d4b0451 commit 62719c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/calculator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 62719c3

Please sign in to comment.