use a more natural ordering for modifier keys

develop
myk002 2022-11-07 13:58:39 -08:00
parent 2b73d6e8e9
commit 8bf987e7db
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 3 additions and 3 deletions

@ -70,17 +70,17 @@ static void find_active_keybindings(df::viewscreen *screen)
auto current_focus = Gui::getFocusString(screen);
for (int shifted = 0; shifted < 2; shifted++)
{
for (int ctrl = 0; ctrl < 2; ctrl++)
{
for (int alt = 0; alt < 2; alt++)
{
for (int ctrl = 0; ctrl < 2; ctrl++)
{
for (auto it = valid_keys.begin(); it != valid_keys.end(); it++)
{
string sym;
if (shifted) sym += "Shift-";
if (ctrl) sym += "Ctrl-";
if (alt) sym += "Alt-";
if (shifted) sym += "Shift-";
sym += *it;
auto list = Core::getInstance().ListKeyBindings(sym);