Skip to content

Commit f81aa32

Browse files
authored
Gmoccapy: Fix arrow key up/down bug in tooleditor
1 parent 9d4a038 commit f81aa32

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/emc/usr_intf/gmoccapy/gmoccapy.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1924,7 +1924,9 @@ def _init_tooleditor(self):
19241924
self.widgets.tooledit1.set_visible("abcxyzuvwijq", False)
19251925
for axis in self.axis_list:
19261926
self.widgets.tooledit1.set_visible("{0}".format(axis), True)
1927-
1927+
# disconnect the key_press handler in the widget
1928+
tv = self.widgets.tooledit1.wTree.get_object("treeview1")
1929+
tv.disconnect_by_func(self.widgets.tooledit1.on_tree_navigate_key_press)
19281930
# if it's a lathe config we show lathe related columns
19291931
if self.lathe_mode:
19301932
self.widgets.tooledit1.set_visible("ijq", True)

0 commit comments

Comments
 (0)