mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
UniversalEntry: Ctrl+I to expand/collapse current item
Ctrl+Y is reserved in QLineEdit.
This commit is contained in:
parent
cba8b1c047
commit
16399ded29
@ -68,7 +68,7 @@ bool VHelpUE::initListWidget()
|
||||
m_listWidget->addItem(tr("Ctrl+J: Go to next item"));
|
||||
m_listWidget->addItem(tr("Ctrl+K: Go to previous item"));
|
||||
m_listWidget->addItem(tr("Ctrl+L: Go to current item's parent item"));
|
||||
m_listWidget->addItem(tr("Ctrl+Y: Expand/Collapse current item"));
|
||||
m_listWidget->addItem(tr("Ctrl+I: Expand/Collapse current item"));
|
||||
m_listWidget->addItem(tr("Ctrl+S: Sort items"));
|
||||
m_listWidget->addItem(tr("Enter: Activate current item"));
|
||||
m_listWidget->addItem(tr("Ctrl+M: Browse current item folder or the folder containing current item"));
|
||||
|
@ -364,9 +364,9 @@ void VUniversalEntry::keyPressEvent(QKeyEvent *p_event)
|
||||
|
||||
break;
|
||||
|
||||
case Qt::Key_Y:
|
||||
case Qt::Key_I:
|
||||
if (VUtils::isControlModifierForVim(modifiers)) {
|
||||
// Ctrl+Y to expand or collapse an item.
|
||||
// Ctrl+I to expand or collapse an item.
|
||||
if (m_lastEntry) {
|
||||
m_lastEntry->m_entry->toggleItemExpanded(m_lastEntry->m_id);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user