Ref T606, added back/tab/ESC as hotkeys

This commit is contained in:
Klaus Basan
2019-04-14 02:35:38 +02:00
parent df686d7efc
commit 9287713cb8
7 changed files with 21 additions and 2 deletions

View File

@@ -68,6 +68,9 @@ namespace BlackMisc
case Key_Numpad7: return QStringLiteral("Num7");
case Key_Numpad8: return QStringLiteral("Num8");
case Key_Numpad9: return QStringLiteral("Num9");
case Key_Esc: return QStringLiteral("ESC");
case Key_Tab: return QStringLiteral("Tab");
case Key_Back: return QStringLiteral("Backspace");
default: return QChar::fromLatin1(static_cast<char>(m_keyCode));
}
}
@@ -105,7 +108,7 @@ namespace BlackMisc
void CKeyboardKey::setPropertyByIndex(const CPropertyIndex &index, const CVariant &variant)
{
if (index.isMyself()) { (*this) = variant.to<CKeyboardKey>(); return; }
ColumnIndex i = index.frontCasted<ColumnIndex>();
const ColumnIndex i = index.frontCasted<ColumnIndex>();
switch (i)
{
case IndexKey:

View File

@@ -45,6 +45,9 @@ namespace BlackMisc
CKeyboardKey(Key_Comma),
CKeyboardKey(Key_Multiply),
CKeyboardKey(Key_Divide),
CKeyboardKey(Key_Back),
CKeyboardKey(Key_Tab),
CKeyboardKey(Key_Esc),
CKeyboardKey(Key_A),
CKeyboardKey(Key_B),
CKeyboardKey(Key_C),

View File

@@ -27,6 +27,9 @@ namespace BlackMisc
Key_ControlRight,
Key_AltLeft,
Key_AltRight,
Key_Back,
Key_Tab,
Key_Esc,
Key_Plus = 43,
Key_Comma,
Key_Minus,