mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Allow other keypresses in LogListWidget
By not emitting the native signal, all other keypresses other than the copy and select keysequences are ignored. This should reallow keyboard navigation within LogListWidget objects. Closes #12172.
This commit is contained in:
parent
8e553adc92
commit
c5aab39836
1 changed files with 2 additions and 2 deletions
|
@ -72,8 +72,8 @@ void LogListWidget::keyPressEvent(QKeyEvent *event)
|
|||
{
|
||||
if (event->matches(QKeySequence::Copy))
|
||||
copySelection();
|
||||
else if (event->matches(QKeySequence::SelectAll))
|
||||
selectAll();
|
||||
else
|
||||
QListWidget::keyPressEvent(event);
|
||||
}
|
||||
|
||||
void LogListWidget::appendLine(const QString &line, const Log::MsgType &type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue