aboutsummaryrefslogtreecommitdiff
path: root/bterm.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-10-13 18:34:55 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-10-13 18:34:55 -0700
commit999c60c0991d30bc3cdfb2e185cae1770bc1a24c (patch)
tree634abc8151a26251e824305d806889a9501570e8 /bterm.h
parente40feed849fb24aee23e4a19110e642a77c38726 (diff)
Added support for shift-home and shift-end, as well as a default binding
to +spread using them.
Diffstat (limited to 'bterm.h')
-rw-r--r--bterm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bterm.h b/bterm.h
index 037ec62..c61d465 100644
--- a/bterm.h
+++ b/bterm.h
@@ -179,6 +179,8 @@ int bgetkey(FILE *in, int *mouse_x, int *mouse_y)
case 'D': return modifiers | KEY_ARROW_LEFT;
case 'F': return modifiers | KEY_END;
case 'H': return modifiers | KEY_HOME;
+ case 'J': return numcode == 2 ? (MOD_SHIFT | KEY_HOME) : -1;
+ case 'K': return MOD_SHIFT | KEY_END;
case 'M': return MOD_CTRL | KEY_DELETE;
case 'P': return modifiers | (numcode == 1 ? KEY_F1 : KEY_DELETE);
case 'Q': return numcode == 1 ? (modifiers | KEY_F2) : -1;