From f1ff2738daed232cbb2fb829085066a6f065c0e0 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 3 Jul 2014 07:16:24 +0200 Subject: [PATCH] Don't normalize keys via QKeySequence. This yields rather strange results with some exotic keys, and this normalisation doesn't really do much anyways. --- qutebrowser/keyinput/basekeyparser.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/qutebrowser/keyinput/basekeyparser.py b/qutebrowser/keyinput/basekeyparser.py index 51cc0653a..61b7c46a0 100644 --- a/qutebrowser/keyinput/basekeyparser.py +++ b/qutebrowser/keyinput/basekeyparser.py @@ -24,7 +24,6 @@ import string from functools import partial from PyQt5.QtCore import pyqtSignal, pyqtSlot, Qt, QObject -from PyQt5.QtGui import QKeySequence import qutebrowser.config.config as config from qutebrowser.utils.usertypes import enum, Timer @@ -122,7 +121,6 @@ class BaseKeyParser(QObject): keystr = keystr.replace(orig, repl) for mod in ('Ctrl', 'Meta', 'Alt', 'Shift'): keystr = keystr.replace(mod + '-', mod + '+') - keystr = QKeySequence(keystr).toString() return keystr def _handle_special_key(self, e):