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:
aditya-K2
2021-11-11 23:24:58 +05:30
parent 3c5835dba1
commit 482978897d
2 changed files with 31 additions and 8 deletions
+1 -1
View File
@@ -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")