From 598d1a2aa3ffdbc6de3e28797faf3ff68e0475f9 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Fri, 8 Apr 2022 11:03:27 +0800 Subject: [PATCH] * lisp/term/x-win.el (x-device-class): Detect "USB USB Keykoard"s. --- lisp/term/x-win.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el index ac8b1f5df32..d10d8d1dbdc 100644 --- a/lisp/term/x-win.el +++ b/lisp/term/x-win.el @@ -1608,7 +1608,10 @@ Users should not call this function; see `device-class' instead." (string-match-p "pointer" downcased-name)) 'mouse) ((string-match-p "cursor" downcased-name) 'puck) - ((string-match-p "keyboard" downcased-name) 'keyboard) + ((or (string-match-p "keyboard" downcased-name) + ;; One of my cheap keyboards is really named this... + (string= name "USB USB Keykoard")) + 'keyboard) ((string-match-p "button" downcased-name) 'power-button) ((string-match-p "touchpad" downcased-name) 'touchpad) ((or (string-match-p "midi" downcased-name) -- 2.39.5