Skip to content

Commit

Permalink
Cleanup code (robotframework#2905)
Browse files Browse the repository at this point in the history
* clean duplicates

* clean duplicates

* clean duplicates

* clean duplicates

* rename function

* Refactor TextEdit, WIP

* Fix unit tests with language transform

* Fix insecure save of tmp file

* Set Sonar for banches, update version

* Set Sonar for banches, update version

* Set Sonar for branches, update version

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

* Improve keys calls in TextEditor

* Improve key use in TextEditor on Windows

* Increase utest in TextEditor

* Add requests to setup.py

* First develop version
  • Loading branch information
HelioGuilherme66 committed Nov 14, 2024
1 parent d5af29d commit c325900
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/robotide/editor/kweditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,7 @@ 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 @@ -859,6 +860,7 @@ 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 @@ -948,6 +950,7 @@ 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 c325900

Please sign in to comment.