Difficult to say.
I would say that it doesn't work at all.
I try with Qt::Key_9
else if (key_event->key() == Qt::Key_9)
if (key_event->modifiers() & (Qt::ShiftModifier | Qt::ControlModifier))
{
lookupReferences();
event->ignore();
return true;
}
else if (key_event->key() == Qt::Key_9)
if (key_event->modifiers() & (Qt::ShiftModifier | Qt::ControlModifier))
{
lookupReferences();
event->ignore();
return true;
}
To copy to clipboard, switch view to plain text mode
Shift+9 = ")" [Italian Keyboard]
Ctrl+9 = works
Ctrl+Shift+9 = ")"
From this, I would say that "|" means "or".
if ((key_event->modifiers() & Qt::ShiftModifier) != 0 && (key_event->modifiers() & Qt::ControlModifier) != 0)
if ((key_event->modifiers() & Qt::ShiftModifier) != 0 && (key_event->modifiers() & Qt::ControlModifier) != 0)
To copy to clipboard, switch view to plain text mode
Ctrl+Shift+9 = ")"
Ctrl+9 = nothing
Shift+9 = ")"
but
else if (key_event->key() == Qt::Key_U)
if (key_event->modifiers() & (Qt::ShiftModifier | Qt::ControlModifier))
else if (key_event->key() == Qt::Key_U)
if (key_event->modifiers() & (Qt::ShiftModifier | Qt::ControlModifier))
To copy to clipboard, switch view to plain text mode
Shift+U = works
Ctrl+U = works
There is something weird here.
Later I will try more combinations
Bookmarks