diff options
author | June McEnroe <june@causal.agency> | 2020-02-09 04:20:07 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-02-09 04:20:07 -0500 |
commit | b08c2d03efa08bd319a0665d12bef34df08ab283 (patch) | |
tree | b880a35e71127ad3165159df2b53888b2273fc6e /ui.c | |
parent | Add C-k (diff) | |
download | catgirl-b08c2d03efa08bd319a0665d12bef34df08ab283.tar.gz catgirl-b08c2d03efa08bd319a0665d12bef34df08ab283.zip |
Add M-b and M-f
Diffstat (limited to '')
-rw-r--r-- | ui.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui.c b/ui.c index d83a1f3..7811e88 100644 --- a/ui.c +++ b/ui.c @@ -192,6 +192,8 @@ static void errExit(void) { X(KeyMeta7, "\0337") \ X(KeyMeta8, "\0338") \ X(KeyMeta9, "\0339") \ + X(KeyMetaB, "\033b") \ + X(KeyMetaF, "\033f") \ X(KeyMetaM, "\33m") \ X(KeyFocusIn, "\33[I") \ X(KeyFocusOut, "\33[O") \ @@ -622,6 +624,8 @@ static void keyCode(int code) { break; case KeyPasteOn:; // TODO break; case KeyPasteOff:; // TODO + break; case KeyMetaB: edit(id, EditPrevWord, 0); + break; case KeyMetaF: edit(id, EditNextWord, 0); break; case KeyMetaM: waddch(windows.active->pad, '\n'); break; case KEY_BACKSPACE: edit(id, EditDeletePrev, 0); |