Pressing ESC (from playlist view) also focus on filter, and clear it. Fixes issue 606 (definitely)
This commit is contained in:
parent
7f783d088e
commit
80c1b9417e
@ -451,7 +451,8 @@ void PlaylistView::keyPressEvent(QKeyEvent* event) {
|
||||
} else if(event->modifiers() == Qt::NoModifier // No modifier keys currently pressed...
|
||||
// ... and key pressed is something related to text
|
||||
&& ( (event->key() >= Qt::Key_A && event->key() <= Qt::Key_Z)
|
||||
|| event->key() == Qt::Key_Backspace )) {
|
||||
|| event->key() == Qt::Key_Backspace
|
||||
|| event->key() == Qt::Key_Escape)) {
|
||||
emit FocusOnFilterSignal(event);
|
||||
event->accept();
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user