mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 23:15:14 -04:00
fixed key events in goToFlow
TODO: add eventFilter to goToFlow edit...
This commit is contained in:
@ -1244,6 +1244,12 @@ void PictureFlow::keyPressEvent(QKeyEvent* event)
|
||||
return;
|
||||
}
|
||||
|
||||
if(event->key() == Qt::Key_Up)
|
||||
{
|
||||
//TODO emit selected signal
|
||||
return;
|
||||
}
|
||||
|
||||
event->ignore();
|
||||
}
|
||||
|
||||
|
@ -952,6 +952,12 @@ void YACReaderFlowGL::keyPressEvent(QKeyEvent *event)
|
||||
return;
|
||||
}
|
||||
|
||||
if(event->key() == Qt::Key_Up)
|
||||
{
|
||||
emit selected(centerIndex());
|
||||
return;
|
||||
}
|
||||
|
||||
event->ignore();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user