Commit 88003c3f authored by Jan Möbius's avatar Jan Möbius
Browse files

Dennis:

Selection Plugin: Register-modifiers-as-multiUse




git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5697 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 63ed623e
......@@ -106,15 +106,15 @@ void SelectionPlugin::initializePlugin() {
emit registerKey(Qt::Key_Delete, Qt::NoModifier, "Delete Selection");
//the release event does not contain the modifier
emit registerKey(Qt::Key_Control, Qt::NoModifier, "Deselect instead of Select");
emit registerKey(Qt::Key_Shift, Qt::NoModifier, "Switch between source/target Selection");
emit registerKey(Qt::Key_Control, Qt::NoModifier, "Deselect instead of Select", true);
emit registerKey(Qt::Key_Shift, Qt::NoModifier, "Switch between source/target Selection", true);
//the press event contains the modifier
emit registerKey(Qt::Key_Control, Qt::ControlModifier, "Deselect instead of Select");
emit registerKey(Qt::Key_Shift, Qt::ShiftModifier, "Switch between source/target Selection");
emit registerKey(Qt::Key_Control, Qt::ControlModifier, "Deselect instead of Select", true);
emit registerKey(Qt::Key_Shift, Qt::ShiftModifier, "Switch between source/target Selection", true);
//different combinations of keyPresses
emit registerKey(Qt::Key_Shift, Qt::ShiftModifier | Qt::ControlModifier, "Source Deselection");
emit registerKey(Qt::Key_Control, Qt::ShiftModifier | Qt::ControlModifier, "Source Deselection");
emit registerKey(Qt::Key_Shift, Qt::ShiftModifier | Qt::ControlModifier, "Source Deselection", true);
emit registerKey(Qt::Key_Control, Qt::ShiftModifier | Qt::ControlModifier, "Source Deselection", true);
}
//***********************************************************************************
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment