mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-28 20:16:05 +01:00
Tag browser: Renaming of items should not toggle the item when pressing the Enter key
This commit is contained in:
parent
34a4f06855
commit
71cf4248dc
1 changed files with 1 additions and 1 deletions
|
|
@ -294,7 +294,7 @@ def set_database(self, db, alter_tb):
|
|||
self.collapsed.connect(self.collapse_node_and_children)
|
||||
|
||||
def keyPressEvent(self, event):
|
||||
if event.key() == Qt.Key_Return:
|
||||
if event.key() == Qt.Key_Return and self.state() != self.EditingState:
|
||||
# I don't see how it can ever not be valid, but ...
|
||||
if self.currentIndex().isValid():
|
||||
self.toggle_current_index()
|
||||
|
|
|
|||
Loading…
Reference in a new issue