Browse Source

access: fix Tab stash focus switching

pull/8474/head
mojsior 2 months 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( options.Keymapper.AddAction(
"ToggleAutomap", "ToggleAutomap",
N_("Toggle automap"), 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, SDLK_TAB,
DoAutoMap, [] {
if (IsStashOpen) {
ToggleStashFocus();
return;
}
DoAutoMap();
},
nullptr, nullptr,
[]() { return IsGameRunning() && !IsStashOpen; }); IsGameRunning);
options.Keymapper.AddAction( options.Keymapper.AddAction(
"ToggleStashFocus", "ToggleStashFocus",
N_("Toggle stash focus"), N_("Toggle stash focus"),
N_("Tab: switches between inventory and stash."), N_("Tab: switches between inventory and stash."),
SDLK_TAB, SDLK_UNKNOWN,
ToggleStashFocus, ToggleStashFocus,
nullptr, nullptr,
[]() { return IsStashOpen && !InGameMenu() && !ChatLogFlag; }); []() { return IsStashOpen && !InGameMenu() && !ChatLogFlag; });

4
Translations/pl.po

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

Loading…
Cancel
Save