Skip to content

Commit

Permalink
Merge pull request #303 from whizsid/number-input-mac-backspace
Browse files Browse the repository at this point in the history
Fixing the backspace issue in number inputs on Mac
  • Loading branch information
genusistimelord authored Nov 18, 2024
2 parents 62b72b5 + c40f2a2 commit ca8e9a2
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 ca8e9a2

Please sign in to comment.