mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-19 11:25:45 -04:00
FullscreenUI: Various improvements
This commit is contained in:
@ -225,7 +225,10 @@ bool DisplayWidget::event(QEvent* event)
|
||||
|
||||
if (ImGuiManager::WantsTextInput() && key_event->type() == QEvent::KeyPress)
|
||||
{
|
||||
const QString text(key_event->text());
|
||||
// Don't forward backspace characters. We send the backspace as a normal key event,
|
||||
// so if we send the character too, it double-deletes.
|
||||
QString text(key_event->text());
|
||||
text.remove(QChar('\b'));
|
||||
if (!text.isEmpty())
|
||||
emit windowTextEntered(text);
|
||||
}
|
||||
|
Reference in New Issue
Block a user