mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
Implement left-right navigation in GuiCitation
This commit is contained in:
parent
26b2cc89d3
commit
e6180e9914
@ -402,6 +402,12 @@ bool GuiSelectionManager::eventFilter(QObject * obj, QEvent * event)
|
||||
event->accept();
|
||||
return true;
|
||||
}
|
||||
else if (keyPressed == Qt::Key_Right) {
|
||||
selectedLV->setFocus();
|
||||
selectedLV->setCurrentIndex(selectedLV->currentIndex());
|
||||
event->accept();
|
||||
return true;
|
||||
}
|
||||
} else if (etype == QEvent::FocusIn) {
|
||||
if (selectedHasFocus_) {
|
||||
selectedHasFocus_ = false;
|
||||
@ -445,6 +451,12 @@ bool GuiSelectionManager::eventFilter(QObject * obj, QEvent * event)
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if (keyPressed == Qt::Key_Left) {
|
||||
availableLV->setFocus();
|
||||
availableLV->setCurrentIndex(availableLV->currentIndex());
|
||||
event->accept();
|
||||
return true;
|
||||
}
|
||||
} else if (etype == QEvent::FocusIn) {
|
||||
if (!selectedHasFocus_) {
|
||||
selectedHasFocus_ = true;
|
||||
|
Loading…
Reference in New Issue
Block a user