mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -294,7 +294,7 @@ class TagsView(QTreeView): # {{{
|
||||
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…
x
Reference in New Issue
Block a user