From 9392c1972b280500b42b9d16fd3530be5c8e44b6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 23 Nov 2016 13:24:26 +0530 Subject: [PATCH] ... --- src/calibre/gui2/metadata/basic_widgets.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/metadata/basic_widgets.py b/src/calibre/gui2/metadata/basic_widgets.py index 6a922ba7d6..589e0fc175 100644 --- a/src/calibre/gui2/metadata/basic_widgets.py +++ b/src/calibre/gui2/metadata/basic_widgets.py @@ -1734,6 +1734,8 @@ class DateEdit(make_undoable(QDateTimeEdit), ToMetadataMixin): self.setDateTime(QDateTime.currentDateTime()) elif ev.key() == Qt.Key_Up and is_date_undefined(self.current_val): self.setDateTime(QDateTime.currentDateTime()) + elif ev.key() == Qt.Key_Tab and is_date_undefined(self.current_val): + ev.ignore() else: return super(DateEdit, self).keyPressEvent(ev)