summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog2
-rw-r--r--src/actions.c9
2 files changed, 11 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6c26428..e52ac13 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
2001-02-27 shawn <sabetts@diggin.lamenet.tmp>
+ * actions.c (cmd_escape): updates the "other" command keybinding
+
* manage.h (ungrab_prefix_key): new prototype
(grab_prefix_key): likewise
diff --git a/src/actions.c b/src/actions.c
index 15bbe3d..4be87f3 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -715,6 +715,15 @@ cmd_escape (void *data)
action->state = 0;
}
+ /* Update the "other" keybinding */
+ action = find_keybinding(prefix_key.sym, prefix_key.state);
+ if (action != NULL)
+ {
+ action->key = key->sym;
+ action->state = key->state;
+ }
+
+
/* Remove the grab on the current prefix key */
for (cur = rp_mapped_window_sentinel->next;
cur != rp_mapped_window_sentinel;