summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ui.c50
1 files changed, 25 insertions, 25 deletions
diff --git a/ui.c b/ui.c
index 84a0d9c..00313eb 100644
--- a/ui.c
+++ b/ui.c
@@ -217,33 +217,33 @@ static void errExit(void) {
 }
 
 #define ENUM_KEY \
-	X(KeyMeta0, "\0330") \
-	X(KeyMeta1, "\0331") \
-	X(KeyMeta2, "\0332") \
-	X(KeyMeta3, "\0333") \
-	X(KeyMeta4, "\0334") \
-	X(KeyMeta5, "\0335") \
-	X(KeyMeta6, "\0336") \
-	X(KeyMeta7, "\0337") \
-	X(KeyMeta8, "\0338") \
-	X(KeyMeta9, "\0339") \
-	X(KeyMetaA, "\33a") \
-	X(KeyMetaB, "\33b") \
-	X(KeyMetaD, "\33d") \
-	X(KeyMetaF, "\33f") \
-	X(KeyMetaL, "\33l") \
-	X(KeyMetaM, "\33m") \
-	X(KeyMetaU, "\33u") \
-	X(KeyMetaV, "\33v") \
-	X(KeyMetaSlash, "\33/") \
-	X(KeyFocusIn, "\33[I") \
-	X(KeyFocusOut, "\33[O") \
-	X(KeyPasteOn, "\33[200~") \
-	X(KeyPasteOff, "\33[201~")
+	X(KeyMeta0, "\0330", "\33)") \
+	X(KeyMeta1, "\0331", "\33!") \
+	X(KeyMeta2, "\0332", "\33@") \
+	X(KeyMeta3, "\0333", "\33#") \
+	X(KeyMeta4, "\0334", "\33$") \
+	X(KeyMeta5, "\0335", "\33%") \
+	X(KeyMeta6, "\0336", "\33^") \
+	X(KeyMeta7, "\0337", "\33&") \
+	X(KeyMeta8, "\0338", "\33*") \
+	X(KeyMeta9, "\0339", "\33(") \
+	X(KeyMetaA, "\33a", NULL) \
+	X(KeyMetaB, "\33b", NULL) \
+	X(KeyMetaD, "\33d", NULL) \
+	X(KeyMetaF, "\33f", NULL) \
+	X(KeyMetaL, "\33l", NULL) \
+	X(KeyMetaM, "\33m", NULL) \
+	X(KeyMetaU, "\33u", NULL) \
+	X(KeyMetaV, "\33v", NULL) \
+	X(KeyMetaSlash, "\33/", NULL) \
+	X(KeyFocusIn, "\33[I", NULL) \
+	X(KeyFocusOut, "\33[O", NULL) \
+	X(KeyPasteOn, "\33[200~", NULL) \
+	X(KeyPasteOff, "\33[201~", NULL)
 
 enum {
 	KeyMax = KEY_MAX,
-#define X(id, seq) id,
+#define X(id, seq, alt) id,
 	ENUM_KEY
 #undef X
 };
@@ -262,7 +262,7 @@ void uiInit(void) {
 		from_status_line = "\7";
 	}
 
-#define X(id, seq) define_key(seq, id);
+#define X(id, seq, alt) define_key(seq, id); if (alt) define_key(alt, id);
 	ENUM_KEY
 #undef X
 
n/man1/downgrade.1?id=9932abb09e3204d6cbd44c92f3678b6184625693&follow=1'>Set bot mode on downgradeJune McEnroe 2021-09-15Enter capsicum in downgradeJune McEnroe 2021-09-15Factor out common parts of downgrade messagesJune McEnroe 2021-09-14Add downgrade IRC botJune McEnroe 2021-09-14Sort by title if authors matchJune McEnroe 2021-09-13Swap-remove tags as they're foundJune McEnroe 2021-09-12Replace htagml regex with strncmpJune McEnroe 2021-09-11Also defer printing comment for lone close-parensJune McEnroe 2021-09-10Publish "git-comment"June McEnroe 2021-09-10Add git comment --pretty optionJune McEnroe 2021-09-08Defer printing comment if line is blank or closing braceJune McEnroe 2021-09-08Up default min-repeat to 30 linesJune McEnroe 2021-09-08Handle dirty lines in git-commentJune McEnroe 2021-09-08Document and install git-commentJune McEnroe 2021-09-08Add repeat and all options to git-commentJune McEnroe 2021-09-08Add group threshold to git-commentJune McEnroe