mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-25 18:58:56 +00:00
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:
parent
3e116769fb
commit
feecf89d65
Notes:
github-actions[bot]
2024-09-06 05:44:19 +00:00
Author: https://github.com/trflynn89
Commit: feecf89d65
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1292
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue