Revert "Remove old handling of </>"
This reverts commit 99d9e2abbb.
Don't break backwards compatibility.
This commit is contained in:
parent
99d9e2abbb
commit
120aa82fe2
|
|
@ -277,6 +277,8 @@ def _parse_special_key(keystr):
|
|||
('command', 'meta'),
|
||||
('cmd', 'meta'),
|
||||
('mod1', 'alt'),
|
||||
('less', '<'),
|
||||
('greater', '>'),
|
||||
)
|
||||
for (orig, repl) in replacements:
|
||||
keystr = keystr.replace(orig, repl)
|
||||
|
|
|
|||
|
|
@ -447,6 +447,10 @@ class TestKeySequence:
|
|||
('a<', keyutils.KeySequence(Qt.Key_A, Qt.Key_Less)),
|
||||
('>a', keyutils.KeySequence(Qt.Key_Greater, Qt.Key_A)),
|
||||
('<a', keyutils.KeySequence(Qt.Key_Less, Qt.Key_A)),
|
||||
('<alt+greater>',
|
||||
keyutils.KeySequence(Qt.Key_Greater | Qt.AltModifier)),
|
||||
('<alt+less>',
|
||||
keyutils.KeySequence(Qt.Key_Less | Qt.AltModifier)),
|
||||
|
||||
('<<', keyutils.KeySequence(Qt.Key_Less, Qt.Key_Less)),
|
||||
('>>', keyutils.KeySequence(Qt.Key_Greater, Qt.Key_Greater)),
|
||||
|
|
|
|||
Loading…
Reference in New Issue