Skip to content

Commit

Permalink
Fixing the backspace issue in number inputs on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
whizsid committed Nov 17, 2024
1 parent 62b72b5 commit c40f2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widget/number_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ where
if text == "\u{1}" || text == "\u{3}" {
// CTRL + a and CTRL + c
forward_to_text(event, shell, child, clipboard)
} else if text == "\u{8}" {
} else if key == &keyboard::Key::Named(keyboard::key::Named::Backspace) {
// Backspace
if current_text == T::zero().to_string() {
return event::Status::Ignored;
Expand Down

0 comments on commit c40f2a2

Please sign in to comment.