Browse Source

access: fix Tab stash focus switching

pull/8474/head
mojsior 1 month ago
parent
commit
4ba0743371
  1. 14
      Source/diablo.cpp
  2. 4
      Translations/pl.po

14
Source/diablo.cpp

@ -1902,16 +1902,22 @@ void InitKeymapActions()
options.Keymapper.AddAction(
"ToggleAutomap",
N_("Toggle automap"),
N_("Toggles if automap is displayed."),
N_("Toggles if automap is displayed. While the stash is open, switches between inventory and stash."),
SDLK_TAB,
DoAutoMap,
[] {
if (IsStashOpen) {
ToggleStashFocus();
return;
}
DoAutoMap();
},
nullptr,
[]() { return IsGameRunning() && !IsStashOpen; });
IsGameRunning);
options.Keymapper.AddAction(
"ToggleStashFocus",
N_("Toggle stash focus"),
N_("Tab: switches between inventory and stash."),
SDLK_TAB,
SDLK_UNKNOWN,
ToggleStashFocus,
nullptr,
[]() { return IsStashOpen && !InGameMenu() && !ChatLogFlag; });

4
Translations/pl.po

@ -1540,8 +1540,8 @@ msgid "Toggle automap"
msgstr "Przełączanie automapy"
#: Source/diablo.cpp:1896 Source/diablo.cpp:2305
msgid "Toggles if automap is displayed."
msgstr "Przełącza, czy wyświetlana jest automapa."
msgid "Toggles if automap is displayed. While the stash is open, switches between inventory and stash."
msgstr "Przełącza wyświetlanie automapy. Gdy skrytka jest otwarta, przełącza między ekwipunkiem a skrytką."
#: Source/diablo.cpp:1903
msgid "Toggle stash focus"

Loading…
Cancel
Save