diff --git a/qutebrowser/keyinput/keyutils.py b/qutebrowser/keyinput/keyutils.py index 6dbebfef0..90b6dae96 100644 --- a/qutebrowser/keyinput/keyutils.py +++ b/qutebrowser/keyinput/keyutils.py @@ -318,6 +318,14 @@ class KeySequence: # pylint: disable=protected-access return self._sequences > other._sequences + def __le__(self, other): + # pylint: disable=protected-access + return self._sequences <= other._sequences + + def __ge__(self, other): + # pylint: disable=protected-access + return self._sequences >= other._sequences + def __eq__(self, other): # pylint: disable=protected-access return self._sequences == other._sequences