Skip to content

Commit

Permalink
Fixes pimutils/khal/#1345
Browse files Browse the repository at this point in the history
Add page up and page down to keys that trigger an event update
  • Loading branch information
P committed Apr 21, 2024
1 parent f5f1235 commit 0fa1661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions khal/ui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def keypress(self, size, key):
return None

if (
key in ['up', 'down', 'tab', 'shift tab'] or
key in ['up', 'down', 'tab', 'shift tab', 'page up', 'page down'] or
(key in ['right'] and self.edit_pos >= len(self.edit_text)) or
(key in ['left'] and self.edit_pos == 0)):
# when leaving the current Widget we check if currently
Expand Down Expand Up @@ -436,7 +436,7 @@ def edit_text(self):

def keypress(self, size, key):
if (
key in ['up', 'down', 'tab', 'shift tab'] or
key in ['up', 'down', 'tab', 'shift tab', 'page up', 'page down'] or
(key in ['right'] and self.edit_pos >= len(self.edit_text)) or
(key in ['left'] and self.edit_pos == 0)):
if not self._validate():
Expand Down

0 comments on commit 0fa1661

Please sign in to comment.