summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/bindings.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/bindings.go b/config/bindings.go
index 7ff0c24..4be37de 100644
--- a/config/bindings.go
+++ b/config/bindings.go
@@ -199,6 +199,14 @@ func ParseKeyStrokes(keystrokes string) ([]KeyStroke, error) {
}
case '>':
return nil, errors.New("Found '>' without '<'")
+ case '\\':
+ tok, _, err = buf.ReadRune()
+ if err == io.EOF {
+ tok = '\\'
+ } else if err != nil {
+ return nil, err
+ }
+ fallthrough
default:
strokes = append(strokes, KeyStroke{
Modifiers: tcell.ModNone,