aboutsummaryrefslogtreecommitdiff
path: root/ui.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-10-27 00:33:53 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-10-27 00:33:53 +0200
commit8a85e071fdaa7448e6ec595bcbeba633e7a95af6 (patch)
tree80ab2c25bb68e7559dc52b317f36b47708c49cf8 /ui.h
parentd4f852269246b07479aa2bbd8db8798509394f99 (diff)
downloadvis-8a85e071fdaa7448e6ec595bcbeba633e7a95af6.tar.gz
vis-8a85e071fdaa7448e6ec595bcbeba633e7a95af6.tar.xz
vis: apply language map only to key values not modifiers
The language map translation should not take modifiers into account. For example if `a` is mapped to `b` then `<M-a>` should also be mapped to `<M-b>`. Fix #404
Diffstat (limited to 'ui.h')
-rw-r--r--ui.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.h b/ui.h
index 26f2227..f1e6c28 100644
--- a/ui.h
+++ b/ui.h
@@ -66,7 +66,7 @@ struct Ui {
void (*redraw)(Ui*);
void (*update)(Ui*);
void (*suspend)(Ui*);
- const char* (*getkey)(Ui*);
+ bool (*getkey)(Ui*, TermKeyKey*);
bool (*haskey)(Ui*);
void (*terminal_save)(Ui*);
void (*terminal_restore)(Ui*);