Skip to content

Commit

Permalink
Make textbox accept keypad enter as input confirmation as well. (#4474)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomvet authored Oct 11, 2024
1 parent 724c659 commit 2acd423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/makielayout/blocks/textbox.jl
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function initialize_block!(tbox::Textbox)
removechar!(cursorindex[])
elseif key == Keyboard.delete
removechar!(cursorindex[] + 1)
elseif key == Keyboard.enter
elseif key == Keyboard.enter || key == Keyboard.kp_enter
# don't do anything for invalid input which should stay red
if displayed_is_valid[]
# submit the written text
Expand Down

0 comments on commit 2acd423

Please sign in to comment.