winder / Universal-G-Code-Sender

A cross-platform G-Code sender for GRBL, Smoothieware, TinyG and G2core.
http://winder.github.io/ugs_website/
GNU General Public License v3.0
1.86k stars 757 forks source link

Arrow keys no longer jog machine #2105

Closed ArcAIN6 closed 1 year ago

ArcAIN6 commented 1 year ago

Version

2.0.11

Hardware / Firmware

GRBL 1.1

What happened

Upgraded to 2.0.11 (2.12 simply wouldn't open at all) (would also like to note that nowhere in the software is 2.0.11 spelled out, as it's calling itself 2.0-Snapshot?) luckily the zip had the version

Everything works fine, for the exception of using arrow keys to jog, looked in every setting screen i could find, and no "check mark" to enable jogging via KB, so headed into the key mapping section, and manually mapped them to the arrows.. .still no joy.. Tried to reverse the changes, but selecting "reset to default" doesn't actually do anything.

Keyboard jogging is a massively under rated feature. as trying to use a mouse while looking at the machine tends to lead to drifting mouse position, and miss-clicks

How to reproduce

1) Remove all files, and folders belonging to older version 2) Remove associated files and folders from %appdata% of the older version 3) Unzip new version and run it 4) Click "keyboard" symbol in center of jog window 5) Click arrow key on keyboard 6) See that nothing happens 7) click arrows in jog window 8) watch machine move 9) repeat steps 4 & 5 to verify keyboard jogging is not working

Operating System

Windows 10 64Bit

Anything else

i can't really think of anything else... hope it's something simple, and doesn't take up too much time... nothing worse than yak shaving.

breiler commented 1 year ago

Yes this button is a bit unintuitive, all it does is to steal focus from all the other windows as a workaround for a previous problem where for instance a text-field would consume all key press events, effectively disabling all keyboard shortcuts: image

Keyboard mapping is done from the settings like you found and are global throughout the application. So you would need to combine it with some META-key such as SHIFT, CTRL or ALT and they must not collide with an existing shortcut. For instance CTRL+C and CTRL+V is a bad choice and so is just the arrow-keys.

There are some shortcomings to be aware of when using jogging with a keyboard also described here: https://github.com/winder/Universal-G-Code-Sender/issues/1494

The "reset to default" will not do anything if there isn't a default to reset to.

ArcAIN6 commented 1 year ago

I'm not sure what changed between the previous version of UGS platform i had, and this new version, but i didn't need to use a "meta" key on the last version. I'm assuming that's why it's not working, is i wanted to map movement to just the arrow keys, without having to resort to pressing multiple keys at once to jog the machine.

I did indeed try pressing the keyboard button in the center (noted in the original post) but using Just the arrow key, with no meta, did not work regardless of pressing the keyboard button or not.

I guess this can be closed