From 756a2c5e7ece7a8deb19fd680172f6a842e1f165 Mon Sep 17 00:00:00 2001 From: sabetts Date: Sun, 30 Jan 2005 17:12:55 +0000 Subject: (cmd_escape): when the escape key doesn't have a modifier give the meta key a modifier. --- src/actions.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/actions.c b/src/actions.c index 387865e..df8a4b5 100644 --- a/src/actions.c +++ b/src/actions.c @@ -2578,7 +2578,10 @@ cmd_escape (int interactive, struct cmdarg **args) if (action != NULL && !strcmp (action->data, "meta")) { action->key = key->sym; - action->state = 0; + if (key->state != 0) + action->state = 0; + else + action-state = RP_CONTROL_MASK; } /* Remove the grab on the current prefix key */ -- cgit v1.2.3