URI: 
       tQt: add Key_Enter wherever Key_Return is used - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit b7c2820951fe4a115fd7519a87425c5fe117dacc
   DIR parent 6cfe822caf61f78bdfbbcce61977407494655f5a
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Wed, 26 Aug 2020 19:37:52 +0200
       
       Qt: add Key_Enter wherever Key_Return is used
       
       Diffstat:
         M electrum/gui/qt/main_window.py      |       2 +-
         M electrum/gui/qt/network_dialog.py   |       2 +-
         M electrum/gui/qt/util.py             |       4 ++--
       
       3 files changed, 4 insertions(+), 4 deletions(-)
       ---
   DIR diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py
       t@@ -119,7 +119,7 @@ class StatusBarButton(QPushButton):
                self.func()
        
            def keyPressEvent(self, e):
       -        if e.key() == Qt.Key_Return:
       +        if e.key() in [ Qt.Key_Return, Qt.Key_Enter ]:
                    self.func()
        
        
   DIR diff --git a/electrum/gui/qt/network_dialog.py b/electrum/gui/qt/network_dialog.py
       t@@ -117,7 +117,7 @@ class NodesListWidget(QTreeWidget):
                menu.exec_(self.viewport().mapToGlobal(position))
        
            def keyPressEvent(self, event):
       -        if event.key() in [ Qt.Key_F2, Qt.Key_Return ]:
       +        if event.key() in [ Qt.Key_F2, Qt.Key_Return, Qt.Key_Enter ]:
                    self.on_activated(self.currentItem(), self.currentColumn())
                else:
                    QTreeWidget.keyPressEvent(self, event)
   DIR diff --git a/electrum/gui/qt/util.py b/electrum/gui/qt/util.py
       t@@ -70,7 +70,7 @@ class EnterButton(QPushButton):
                self.clicked.connect(func)
        
            def keyPressEvent(self, e):
       -        if e.key() == Qt.Key_Return:
       +        if e.key() in [ Qt.Key_Return, Qt.Key_Enter ]:
                    self.func()
        
        
       t@@ -581,7 +581,7 @@ class MyTreeView(QTreeView):
            def keyPressEvent(self, event):
                if self.itemDelegate().opened:
                    return
       -        if event.key() in [ Qt.Key_F2, Qt.Key_Return ]:
       +        if event.key() in [ Qt.Key_F2, Qt.Key_Return, Qt.Key_Enter ]:
                    self.on_activated(self.selectionModel().currentIndex())
                    return
                super().keyPressEvent(event)