autotests: Adjust testXkb to correct Hyper key mappings

By default, hyper keys are interpreted as meta keys. However, due to
a Qt bug, it had been incorrectly mapped.

Commit b45b9090c3b66d541f57f8d049c22247f8c115ca in qtbase repo fixed it,
so the test needs adjustments.
This commit is contained in:
Vlad Zahorodnii 2023-11-01 20:17:12 +02:00
parent a8466c3604
commit 4449375967

View file

@ -90,8 +90,13 @@ static const TransKey g_rgQtToSymX[] = {
{XKB_KEY_Super_L, Qt::Key_Super_L, Qt::KeyboardModifiers()},
{XKB_KEY_Super_R, Qt::Key_Super_R, Qt::KeyboardModifiers()},
{XKB_KEY_Menu, Qt::Key_Menu, Qt::KeyboardModifiers()},
#if QT_VERSION < QT_VERSION_CHECK(6, 6, 0)
{XKB_KEY_Hyper_L, Qt::Key_Hyper_L, Qt::KeyboardModifiers()},
{XKB_KEY_Hyper_R, Qt::Key_Hyper_R, Qt::KeyboardModifiers()},
#else
{XKB_KEY_Hyper_L, Qt::Key_Meta, Qt::KeyboardModifiers()},
{XKB_KEY_Hyper_R, Qt::Key_Meta, Qt::KeyboardModifiers()},
#endif
{XKB_KEY_Help, Qt::Key_Help, Qt::KeyboardModifiers()},
{XKB_KEY_KP_Space, Qt::Key_Space, Qt::KeypadModifier},
{XKB_KEY_KP_Tab, Qt::Key_Tab, Qt::KeypadModifier},
@ -253,7 +258,7 @@ static const TransKey g_rgQtToSymX[] = {
{XKB_KEY_XF86LaunchE, Qt::Key_LaunchE, Qt::KeyboardModifiers()},
{XKB_KEY_XF86LaunchF, Qt::Key_LaunchF, Qt::KeyboardModifiers()},
// Latin-1
// Latin-1
{XKB_KEY_exclam, Qt::Key_Exclam, Qt::KeyboardModifiers()},
{XKB_KEY_quotedbl, Qt::Key_QuoteDbl, Qt::KeyboardModifiers()},
{XKB_KEY_numbersign, Qt::Key_NumberSign, Qt::KeyboardModifiers()},