Skip to content
Permalink
Browse files

fix zoom keys

  • Loading branch information...
iperov committed Apr 8, 2019
1 parent 8561c1a commit 2276f5eb73c2b37fa75e27c882f6a8cb55369e95
Showing with 1 addition and 2 deletions.
  1. +1 −2 mainscripts/MaskEditorTool.py
@@ -458,13 +458,12 @@ def get_status_lines_func():
ed.redo_point()

for key, chr_key, ctrl_pressed, alt_pressed, shift_pressed in io.get_key_events(wnd_name):

if chr_key == 'q' or chr_key == 'z':
do_prev_count = 1 if not shift_pressed else 10
elif chr_key == '-':
zoom_factor = np.clip (zoom_factor-0.1, 0.1, 4.0)
ed.set_screen_changed()
elif chr_key == '=':
elif chr_key == '+':
zoom_factor = np.clip (zoom_factor+0.1, 0.1, 4.0)
ed.set_screen_changed()
elif key == 27: #esc

0 comments on commit 2276f5e

Please sign in to comment.
You can’t perform that action at this time.