mirror of
https://github.com/libratbag/piper.git
synced 2026-05-19 12:26:00 -04:00
RatbagdButton: add ACTION_SPECIAL_UNKNOWN to SPECIAL_DESCRIPTION
This prevents crashing when a device reports an unknown special action type to libratbag, see e.g. #120.
This commit is contained in:
@@ -593,6 +593,7 @@ class RatbagdButton(_RatbagdDBus):
|
||||
|
||||
"""A table mapping a special function to its human-readable description."""
|
||||
SPECIAL_DESCRIPTION = {
|
||||
ACTION_SPECIAL_UNKNOWN: _("Unknown"),
|
||||
ACTION_SPECIAL_DOUBLECLICK: _("Doubleclick"),
|
||||
ACTION_SPECIAL_WHEEL_LEFT: _("Wheel Left"),
|
||||
ACTION_SPECIAL_WHEEL_RIGHT: _("Wheel Right"),
|
||||
|
||||
Reference in New Issue
Block a user