LibWeb: Define a helper constant for the platform word-jumping key

On Linux/Windows, the ctrl key is used in conjunction with arrow keys to
jump word-by-word in text documents. On macOS, the option key is used
(which is mapped to the alt key code).
This commit is contained in:
Timothy Flynn 2024-09-05 12:29:26 -04:00 committed by Andreas Kling
commit feecf89d65
Notes: github-actions[bot] 2024-09-06 05:44:19 +00:00

View file

@ -185,8 +185,10 @@ enum KeyModifier {
#if defined(AK_OS_MACOS)
Mod_PlatformCtrl = Mod_Super,
Mod_PlatformWordJump = Mod_Alt,
#else
Mod_PlatformCtrl = Mod_Ctrl,
Mod_PlatformWordJump = Mod_Ctrl,
#endif
};