diff --git a/keys.go b/keys.go index ddb81fa..b8a677a 100644 --- a/keys.go +++ b/keys.go @@ -528,7 +528,6 @@ var xKeysShifted = map[string]int{ "parenright": uinput.Key0, "underscore": uinput.KeyMinus, "plus": uinput.KeyEqual, - "backspace": uinput.KeyBackspace, "iso_left_tab": uinput.KeyTab, "q": uinput.KeyQ, "w": uinput.KeyW, diff --git a/xkeys.bash b/xkeys.bash index eb8766e..033eef4 100755 --- a/xkeys.bash +++ b/xkeys.bash @@ -36,7 +36,7 @@ echo 'var xKeysShifted = map[string]int{' { paste -d ' ' <(xmodmap -pke | sed '1 d; s/.*= /"/; /.*=/ d; s/\S* /"/; s/ .*/":/' | sed '/^"XF86Eject"/ { N; s/.*\n// }') \ <(go doc uinput.keyesc | sed '/Key/ !d; s/^\s*/uinput./; s/ .*/,/' | align) | sed '/^"NoSymbol"/ d; /^\S*_[LR]"/ d' | - # Remove duplicate keys - sed '/^"KP_Decimal":.*Kpcomma/ d; /\/ d' + # Remove backspace and duplicate keys + sed '/^"BackSpace"/ d; /^"KP_Decimal":.*Kpcomma/ d; /\/ d' } | sed 's/^".*"/\L&/; s/^/\t/' echo '}'