This modifies the keyboard jog key behavior to use G0 speed while Shift is 
pressed.
If shift is released, it will move at the feedrate-slider speed.

Signed-off-by: Michael Buesch <[email protected]>

---
 src/emc/usr_intf/axis/scripts/axis.py |    2 ++
 1 file changed, 2 insertions(+)

--- emc2.3-branch.orig/src/emc/usr_intf/axis/scripts/axis.py
+++ emc2.3-branch/src/emc/usr_intf/axis/scripts/axis.py
@@ -3554,6 +3554,8 @@ def jog_off_all():
 def bind_axis(a, b, d):
     root_window.bind("<KeyPress-%s>" % a, kp_wrap(lambda e: jog_on(d, 
-get_jog_speed(d)), "KeyPress"))
     root_window.bind("<KeyPress-%s>" % b, kp_wrap(lambda e: jog_on(d, 
get_jog_speed(d)), "KeyPress"))
+    root_window.bind("<Shift-KeyPress-%s>" % a, lambda e: jog_on(d, 
-get_max_jog_speed(d)))
+    root_window.bind("<Shift-KeyPress-%s>" % b, lambda e: jog_on(d, 
get_max_jog_speed(d)))
     root_window.bind("<KeyRelease-%s>" % a, lambda e: jog_off(d))
     root_window.bind("<KeyRelease-%s>" % b, lambda e: jog_off(d))
 

-- 
Greetings, Michael.

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to