Skip to content

Commit

Permalink
Merge pull request #340 from Leleat/fix-339
Browse files Browse the repository at this point in the history
MoveHandler: Ignore unused mods for determining the MoveModes
  • Loading branch information
Leleat authored May 15, 2024
2 parents 230efe9 + 0ef6a50 commit 93f1edc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,13 +327,13 @@ export default class TilingMoveHandler {
const adaptiveMod = Settings.getInt('move-adaptive-tiling-mod');
const favMod = Settings.getInt('move-favorite-layout-mod');
const ignoreTAMod = Settings.getInt('ignore-ta-mod');
const noMod = pressed.every(modPressed => !modPressed);
const noMod = !pressed[adaptiveMod] && !pressed[ignoreTAMod] && !pressed[ignoreTAMod];

const useAdaptiveTiling = defaultMode !== MoveModes.ADAPTIVE_TILING && adaptiveMod && pressed[adaptiveMod] ||
const useAdaptiveTiling = defaultMode !== MoveModes.ADAPTIVE_TILING && pressed[adaptiveMod] ||
noMod && defaultMode === MoveModes.ADAPTIVE_TILING;
const usefavLayout = defaultMode !== MoveModes.FAVORITE_LAYOUT && favMod && pressed[favMod] ||
const usefavLayout = defaultMode !== MoveModes.FAVORITE_LAYOUT && pressed[favMod] ||
noMod && defaultMode === MoveModes.FAVORITE_LAYOUT;
const useIgnoreTa = defaultMode !== MoveModes.IGNORE_TA && ignoreTAMod && pressed[ignoreTAMod] ||
const useIgnoreTa = defaultMode !== MoveModes.IGNORE_TA && pressed[ignoreTAMod] ||
noMod && defaultMode === MoveModes.IGNORE_TA;

let newMode = '';
Expand Down

0 comments on commit 93f1edc

Please sign in to comment.