summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inputdev.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/inputdev.cc b/inputdev.cc
index ce81561..c2d11e0 100644
--- a/inputdev.cc
+++ b/inputdev.cc
@@ -171,6 +171,7 @@ public:
modCONTROL,
modALT,
modMETA,
+ modNUMLOCK,
};
private:
@@ -513,6 +514,11 @@ void cInputDevice::handle(void)
case KEY_RIGHTMETA:
set_bit(modMETA, &mask);
break;
+
+ case KEY_NUMLOCK:
+ set_bit(modNUMLOCK, &mask);
+ break;
+
default:
break;
}