aboutsummaryrefslogtreecommitdiff
path: root/termkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'termkey.c')
-rw-r--r--termkey.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/termkey.c b/termkey.c
index 37c2690..573bd44 100644
--- a/termkey.c
+++ b/termkey.c
@@ -610,6 +610,12 @@ void termkey_canonicalise(TermKey *tk, TermKeyKey *key)
fill_utf8(key);
}
}
+
+ if(flags & TERMKEY_CANON_DELBS) {
+ if(key->type == TERMKEY_TYPE_KEYSYM && key->code.sym == TERMKEY_SYM_DEL) {
+ key->code.sym = TERMKEY_SYM_BACKSPACE;
+ }
+ }
}
static TermKeyResult peekkey(TermKey *tk, TermKeyKey *key, int force, size_t *nbytep)