Added Default Mappings
Following Changes Have been made:
1. Rename KMAP -> SPECIAL_KEYS
2. Added Default Mappings through KEY_MAPPINGS
so when the config is read it will change the KEY_MAPPINGS map
which will be then used by the handler function for events.
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ import (
|
||||
)
|
||||
|
||||
func TestGetAsciiValue(t *testing.T) {
|
||||
for k, v := range KMAP {
|
||||
for k, v := range SPECIAL_KEYS {
|
||||
result, err := GetAsciiValue(k)
|
||||
if result != v {
|
||||
t.Errorf("Values From KMAP Failed")
|
||||
|
||||
Reference in New Issue
Block a user