Grabacr07 / SylphyHorn

Virtual Desktop Tools for Windows 10.
MIT License
389 stars 84 forks source link

Can't bind Win Ctrl Shift + (Left|Right) from settings GUI #33

Open Roy-Orbison opened 6 years ago

Roy-Orbison commented 6 years ago

Instead, the window responds to the Win Shift + arrow combination.

After some deduction, I managed to work around it by modifying C:\Users\USERNAME\AppData\Local\Packages\46846grabacr.net.SylphyHorn_vwznf8jfphrrc\LocalCache\Local\grabacr.net\SylphyHorn\Settings.xml (when SylphyHorn is closed) to contain the below code, then restarted it.

  <KeyValueOfstringanyType>
    <Key>ShortcutKeySettings.MoveLeftAndSwitch</Key>
    <Value xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string">37,91,162,160</Value>
  </KeyValueOfstringanyType>
  <KeyValueOfstringanyType>
    <Key>ShortcutKeySettings.MoveRightAndSwitch</Key>
    <Value xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string">39,91,162,160</Value>
  </KeyValueOfstringanyType>
Roy-Orbison commented 6 years ago

I also think they're more intuitive defaults because Win Shift + arrow is move window, and Win Ctrl + arrow is switch desktops.

Roy-Orbison commented 6 years ago

Also added this for same reasons:

  <KeyValueOfstringanyType>
    <Key>ShortcutKeySettings.MoveNewAndSwitch</Key>
    <Value xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string">68,91,162,160</Value>
  </KeyValueOfstringanyType>
ParticleMon commented 5 years ago

Same issue. Moreover, other combos can't be bound, such as Win-Shift-Arrow, but I'll log those in another issue.

Windows 10 Home x64, 1803, 17134.471 SylphyHorn 3.1.0

Roy-Orbison commented 5 years ago

@ParticleMon Not sure why you'd want to bind Win + Shift + Arrow, that'd take away native window snapping.

I still think that Win + Ctrl + Shift + Arrow should be made the new default because then a reset button for each binding in Settings could get it (back), but other combos that the settings panel can listen for will be able to be bound manually.

ParticleMon commented 5 years ago

@Roy-Orbison I haven't gotten accustomed to using the native snap, as I have been using another util to handle window placement. (allSnap enables snapping windows to display edges but it doesn't currently work well in Windows 10, and I haven't yet found anything better.)

Functionality, not defaults, are my main concern. Many key combos don't work, and there are many default OS key combos that would be nice to override.

Roy-Orbison commented 5 years ago

@ParticleMon Works for me with all same version numbers (Win Pro, though).

ParticleMon commented 5 years ago

@Roy-Orbison So, I figured out why no key combo was working for me: combos are not active until the Settings window is closed. :D

Roy-Orbison commented 4 years ago

There is a workaround so it all works from Settings panel! In order to get the OS to ignore combinations that contain but are not the same as native ones, simply hold the modified key first, then the modifiers, then release modifiers, then release the modified key. E.g. hold Left key alone, then hold Win & Shift & Ctrl, let go of Win & Shift & Ctrl, let go of Left.

I still think the defaults for new installs should be Win + Shift + Ctrl + Left/Right for the move and switch actions.