mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-09-29 11:21:12 -04:00
a11y: let F9 toggle TTS on Linux (#7191)
The hotkey was removed in #2833 because Linux had no synthesizer and fell through to SpeechLogger. #5428 added the espeak-ng backend and un-gated the settings checkbox, but left the hotkey and the README on Windows and macOS.
This commit is contained in:
@@ -61,7 +61,7 @@ Congratulations, you are now sailing with the Ship of Harkinian! Have fun!
|
||||
| F5 | Save state |
|
||||
| F6 | Change state |
|
||||
| F7 | Load state |
|
||||
| F9 | Toggle Text-to-Speech (Windows and Mac only) |
|
||||
| F9 | Toggle Text-to-Speech |
|
||||
| F11 | Fullscreen |
|
||||
| Tab | Toggle Alternate assets |
|
||||
| Ctrl+R | Reset |
|
||||
|
||||
@@ -1769,7 +1769,7 @@ extern "C" void Graph_StartFrame() {
|
||||
|
||||
break;
|
||||
}
|
||||
#if defined(_WIN32) || defined(__APPLE__)
|
||||
#if defined(_WIN32) || defined(__APPLE__) || defined(ESPEAK)
|
||||
case KbScancode::LUS_KB_F9: {
|
||||
// Toggle TTS
|
||||
CVarSetInteger(CVAR_SETTING("A11yTTS"), !CVarGetInteger(CVAR_SETTING("A11yTTS"), 0));
|
||||
|
||||
Reference in New Issue
Block a user