summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-10-23 13:40:04 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2016-10-23 13:40:04 +0200
commit639da7a9a76e78e35c65c9991b739de8247e341c (patch)
treed5ba7159865123e7088bcf3e3b449a343ad7b651
parent230b04014f3e7e8d310a2427cc07ece3b9618c2a (diff)
downloadxK-639da7a9a76e78e35c65c9991b739de8247e341c.tar.gz
xK-639da7a9a76e78e35c65c9991b739de8247e341c.tar.xz
xK-639da7a9a76e78e35c65c9991b739de8247e341c.zip
degesch: accept Word shortcuts for formatting
Because why not.
-rw-r--r--degesch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index 6eb2b47..413c6f0 100644
--- a/degesch.c
+++ b/degesch.c
@@ -13047,10 +13047,13 @@ process_mirc_escape (const struct pollfd *fd, struct app_context *ctx)
goto error;
switch (buf->str[0])
{
+ case 'b' ^ 96:
case 'b': CALL_ (ctx->input, insert, "\x02"); break;
case 'c': CALL_ (ctx->input, insert, "\x03"); break;
+ case 'i' ^ 96:
case 'i':
case ']': CALL_ (ctx->input, insert, "\x1d"); break;
+ case 'u' ^ 96:
case 'u':
case '_': CALL_ (ctx->input, insert, "\x1f"); break;
case 'v': CALL_ (ctx->input, insert, "\x16"); break;