From 838cc926f6c87a25cccab2dcd2e73f5b5baa8440 Mon Sep 17 00:00:00 2001 From: wildcard Date: Thu, 23 Apr 2026 03:43:54 +0200 Subject: keyboard fixes (#3865) Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3865 Reviewed-by: CamilleLaVey --- src/common/android/applets/software_keyboard.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/common/android') diff --git a/src/common/android/applets/software_keyboard.cpp b/src/common/android/applets/software_keyboard.cpp index db76db91a6..8967811bd3 100644 --- a/src/common/android/applets/software_keyboard.cpp +++ b/src/common/android/applets/software_keyboard.cpp @@ -243,6 +243,9 @@ void AndroidKeyboard::SubmitInlineKeyboardInput(int key_code) { static_cast(m_current_text.size())); break; case KEYCODE_DEL: + if (m_current_text.empty()) { + return; + } m_current_text.pop_back(); submit_inline_callback(Service::AM::Frontend::SwkbdReplyType::ChangedString, m_current_text, static_cast(m_current_text.size())); -- cgit v1.2.3