diff --git a/genkeys.go b/genkeys.go index b2d0c0dad..65d81a5f4 100644 --- a/genkeys.go +++ b/genkeys.go @@ -375,6 +375,7 @@ func init() { "KP7": "Numpad7", "KP8": "Numpad8", "KP9": "Numpad9", + "KPAdd": "NumpadAdd", "KPDecimal": "NumpadDecimal", "KPDivide": "NumpadDivide", "KPMultiply": "NumpadMultiply", diff --git a/keys.go b/keys.go index aca29bc0f..e300bc9dd 100644 --- a/keys.go +++ b/keys.go @@ -165,6 +165,7 @@ const ( KeyKP7 Key = Key(driver.KeyNumpad7) KeyKP8 Key = Key(driver.KeyNumpad8) KeyKP9 Key = Key(driver.KeyNumpad9) + KeyKPAdd Key = Key(driver.KeyNumpadAdd) KeyKPDecimal Key = Key(driver.KeyNumpadDecimal) KeyKPDivide Key = Key(driver.KeyNumpadDivide) KeyKPEnter Key = Key(driver.KeyNumpadEnter) @@ -826,6 +827,8 @@ func keyNameToKeyCode(name string) (Key, bool) { return KeyKP8, true case "kp9": return KeyKP9, true + case "kpadd": + return KeyKPAdd, true case "kpdecimal": return KeyKPDecimal, true case "kpdivide":