Skip to content

Commit

Permalink
Cleanup code (#154)
Browse files Browse the repository at this point in the history
* Refactor TextEdit, WIP

* Fix unit tests with language transform

* Separated key commands in TextEdit. Breaks some, TAB functions, Enter..

* Delete commented code, renamve arguments

* Refactor change_locale

* Increase unit tests
  • Loading branch information
HelioGuilherme66 committed Nov 14, 2024
1 parent c325900 commit dd209ac
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/robotide/editor/kweditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,6 @@ def _call_alt_function(self, event, keycode: int):
return True

def on_key_down(self, event):
# print(f"DEBUG: KeywordEditor on_key_down event={event} focus={self.is_focused()}")
keycode = event.GetUnicodeKey() or event.GetKeyCode()
if event.ControlDown():
if event.ShiftDown():
Expand All @@ -860,7 +859,6 @@ def on_key_down(self, event):
event.Skip()

def on_char(self, event):
# print(f"DEBUG: KeywordEditor on_char event={event} focus={self.is_focused()}")
key_char = event.GetUnicodeKey()
if key_char < ord(' '):
return
Expand Down Expand Up @@ -950,7 +948,6 @@ def move_grid_cursor_and_edit(self):
self.open_cell_editor()

def on_key_up(self, event):
# print(f"DEBUG: KeywordEditor on_key_up event={event} focus={self.is_focused()}")
event.Skip() # DEBUG seen this skip as soon as possible
self._tooltips.hide()
self._hide_link_if_necessary()
Expand Down

0 comments on commit dd209ac

Please sign in to comment.