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();
|
event->accept();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
else if (keyPressed == Qt::Key_Right) {
|
||||||
|
selectedLV->setFocus();
|
||||||
|
selectedLV->setCurrentIndex(selectedLV->currentIndex());
|
||||||
|
event->accept();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
} else if (etype == QEvent::FocusIn) {
|
} else if (etype == QEvent::FocusIn) {
|
||||||
if (selectedHasFocus_) {
|
if (selectedHasFocus_) {
|
||||||
selectedHasFocus_ = false;
|
selectedHasFocus_ = false;
|
||||||
@ -445,6 +451,12 @@ bool GuiSelectionManager::eventFilter(QObject * obj, QEvent * event)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (keyPressed == Qt::Key_Left) {
|
||||||
|
availableLV->setFocus();
|
||||||
|
availableLV->setCurrentIndex(availableLV->currentIndex());
|
||||||
|
event->accept();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
} else if (etype == QEvent::FocusIn) {
|
} else if (etype == QEvent::FocusIn) {
|
||||||
if (!selectedHasFocus_) {
|
if (!selectedHasFocus_) {
|
||||||
selectedHasFocus_ = true;
|
selectedHasFocus_ = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user