eric6/Network/IRC/IrcMessageEdit.py

branch
maintenance
changeset 8176
31965986ecd1
parent 8043
0acf98cd089a
parent 8143
2c730d5fd177
child 8273
698ae46f40a4
--- a/eric6/Network/IRC/IrcMessageEdit.py	Sat Mar 06 10:00:52 2021 +0100
+++ b/eric6/Network/IRC/IrcMessageEdit.py	Sun Mar 28 15:00:11 2021 +0200
@@ -52,13 +52,13 @@
         @param evt reference to the event (QKeyEvent)
         """
         key = evt.key()
-        if key == Qt.Key_Up:
+        if key == Qt.Key.Key_Up:
             self.__getHistory(True)
             return
-        elif key == Qt.Key_Down:
+        elif key == Qt.Key.Key_Down:
             self.__getHistory(False)
             return
-        elif key in [Qt.Key_Return, Qt.Key_Enter]:
+        elif key in [Qt.Key.Key_Return, Qt.Key.Key_Enter]:
             if self.text():
                 self.__addHistory(self.text())
         elif evt.text() == chr(21):

eric ide

mercurial