hotkey: Identify Alt as "opt" on macOS

Fixes #9172.
This commit is contained in:
Iris Morelle 2024-08-05 13:58:04 -04:00
parent 8700338c75
commit de2d2e2bd6
No known key found for this signature in database
GPG key ID: BB9666228F278524
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,2 @@
### User interface
* Option key is now identified as such instead of Alt in the Hotkeys preferences section on macOS builds

View file

@ -55,7 +55,11 @@ const std::string hotkey_base::get_name() const
ret += (!ret.empty() && !boost::algorithm::ends_with(ret, "+") ? "+" : "");
if(mod_ & KMOD_ALT) {
#ifdef __APPLE__
ret += "opt";
#else
ret += "alt";
#endif
}
ret += (!ret.empty() && !boost::algorithm::ends_with(ret, "+") ? "+" : "");