From c40f2a245ea73fab69ffb2e81bf592f13630452e Mon Sep 17 00:00:00 2001 From: WhizSid Date: Sun, 17 Nov 2024 13:03:41 +0530 Subject: [PATCH] Fixing the backspace issue in number inputs on Mac --- src/widget/number_input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/number_input.rs b/src/widget/number_input.rs index a06d8056..9970eaeb 100644 --- a/src/widget/number_input.rs +++ b/src/widget/number_input.rs @@ -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;