Skip to content

Commit

Permalink
Remap lang reload keybind from F12 to F8
Browse files Browse the repository at this point in the history
This remaps the keybind to reload language files from F12 to F8.

This is because the F12 keybind conflicts with the default Steam keybind
to take a Steam screenshot.

I chose F8 because it is next to another keybind that reloads stuff, F9
(which reloads assets in the editor).

Fixes #1089.
  • Loading branch information
InfoTeddy committed Jan 9, 2024
1 parent b077f24 commit fe21be8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion desktop_version/lang/README-translators.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ If you're an official translator, you should have received a version of this spr

The translator menu has options for both translators and maintainers - it allows testing menus, translating room names within the game, syncing all language files with the English template files, getting statistics on translation progress, and more. The translator menu is hidden from players in regular versions of the game.

When the translator menu is unlocked, you can also press F12 anywhere in the game to reload the current language files. So you can save translations and immediately preview them (except for menu buttons and the current cutscene dialogue, which can't be reloaded on the fly). You will hear a coin sound when the language files have been reloaded via F12.
When the translator menu is unlocked, you can also press F8 anywhere in the game to reload the current language files. So you can save translations and immediately preview them (except for menu buttons and the current cutscene dialogue, which can't be reloaded on the fly). You will hear a coin sound when the language files have been reloaded via F8.



Expand Down
2 changes: 1 addition & 1 deletion desktop_version/src/KeyPoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ void KeyPoll::Poll(void)
fullscreenkeybind = true;
}

if (loc::show_translator_menu && evt.key.keysym.sym == SDLK_F12 && !evt.key.repeat)
if (loc::show_translator_menu && evt.key.keysym.sym == SDLK_F8 && !evt.key.repeat)
{
/* Reload language files */
loc::loadtext(false);
Expand Down

0 comments on commit fe21be8

Please sign in to comment.