summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP <a@b.com>2024-04-21 13:08:00 +0200
committerP <a@b.com>2024-04-21 13:08:00 +0200
commit0fa16611ab9d41ec7984bd5f3ee777f15b711a4e (patch)
tree76425d8f13ef2da60c2f1fbb5cf6ffbaf43c91e7
parentf5f1235a683b7b96280f8d9f4b87464c03421d24 (diff)
Fixes pimutils/khal/#1345
Add page up and page down to keys that trigger an event update
-rw-r--r--khal/ui/widgets.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/khal/ui/widgets.py b/khal/ui/widgets.py
index 568c6af2..d2f6e8cc 100644
--- a/khal/ui/widgets.py
+++ b/khal/ui/widgets.py
@@ -138,7 +138,7 @@ class DateTimeWidget(ExtendedEdit):
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
@@ -436,7 +436,7 @@ class ValidatedEdit(urwid.WidgetWrap):
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():