shithub: evdump

Download patch

ref: fef1f8e00b9ee914d415cf0f86a066d620cfa792
parent: 704fd75a2713ba68da7b929b87012a5db21c883e
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Thu Oct 6 15:20:04 EDT 2022

add new media keys

--- a/evdump.c
+++ b/evdump.c
@@ -26,6 +26,12 @@
 k2s(Rune r)
 {
 	switch(r){
+	case Ksbwd: return "Ksbwd";
+	case Ksfwd: return "Ksfwd";
+	case Kpause: return "Kpause";
+	case Kvoldn: return "Kvoldn";
+	case Kvolup: return "Kvolup";
+	case Kmute: return "Kmute";
 	case Kack: return "Kack";
 	case Kalt: return "Kalt";
 	case Kaltgr: return "Kaltgr";
@@ -116,7 +122,6 @@
 			snprint(t, sizeof(t), "%C (0x%x)", r, r);
 		else
 			snprint(t, sizeof(t), "0x%x", r);
-		print("unexpected key %s %s\n", type, t);
 		return;
 	}
 	q = k[r-Kmbase];