fix: Remove timeout and unnecessary input check to improve mouse event handling
This commit is contained in:
parent
4f48007927
commit
ccefbcef03
3
gtm2.py
3
gtm2.py
|
|
@ -509,7 +509,6 @@ def handle_keyboard_input(key, state):
|
|||
def main(stdscr, filename, show_diff, show_add, show_del, mouse):
|
||||
curses.curs_set(0)
|
||||
stdscr.keypad(True)
|
||||
stdscr.timeout(50)
|
||||
|
||||
if curses.has_colors():
|
||||
curses.use_default_colors()
|
||||
|
|
@ -531,8 +530,6 @@ def main(stdscr, filename, show_diff, show_add, show_del, mouse):
|
|||
|
||||
while not state.should_exit:
|
||||
key = stdscr.getch()
|
||||
if key == -1:
|
||||
continue
|
||||
|
||||
# Process input and update the application state
|
||||
if key == curses.KEY_RESIZE:
|
||||
|
|
|
|||
Loading…
Reference in New Issue