Commit c246fa85 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: allow easy deletion of the keys and global key

This was a regression of the new design
(cherry picked from commit e75a889e632b16a6c1b719025e6d9fcc8ba3b829)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7a026642
......@@ -1492,6 +1492,12 @@ bool KeySelectorControl::eventFilter( QObject *obj, QEvent *e )
selectKey( aTable->currentItem(), aTable->currentColumn() );
return true;
}
else if( keyEv->key() == Qt::Key_Delete )
{
aTable->currentItem()->setText( aTable->currentColumn(), NULL );
aTable->currentItem()->setData( aTable->currentColumn(), Qt::UserRole, QVariant() );
return true;
}
else
return false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment