Fix KeyInfo.text() for space
This commit is contained in:
parent
e9d58dae2a
commit
6fc391986f
@ -263,7 +263,9 @@ class KeyInfo:
|
|||||||
def text(self):
|
def text(self):
|
||||||
"""Get the text which would be displayed when pressing this key."""
|
"""Get the text which would be displayed when pressing this key."""
|
||||||
text = QKeySequence(self.key).toString()
|
text = QKeySequence(self.key).toString()
|
||||||
if len(text) > 1:
|
if self.key == Qt.Key_Space:
|
||||||
|
return ' '
|
||||||
|
elif len(text) > 1:
|
||||||
# Special key?
|
# Special key?
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user