keyboard fixes (#3865)

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3865
Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
This commit is contained in:
wildcard 2026-04-23 03:43:54 +02:00 committed by crueter
parent 860acb4faf
commit 838cc926f6
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6
3 changed files with 93 additions and 0 deletions

View file

@ -243,6 +243,9 @@ void AndroidKeyboard::SubmitInlineKeyboardInput(int key_code) {
static_cast<s32>(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<int>(m_current_text.size()));