diff options
author | sabetts <sabetts> | 2001-02-28 06:43:58 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2001-02-28 06:43:58 +0000 |
commit | 811441c3d6f45b4d6eebbf919dac160619a3a389 (patch) | |
tree | 32b121b27c51fdf5f31fadd22d8be470737e8e84 /src | |
parent | 76914858f3b8f0186db202a1427e11fe9b2fc990 (diff) | |
download | ratpoison-811441c3d6f45b4d6eebbf919dac160619a3a389.zip |
* actions.c (cmd_escape): updates the "other" command keybinding
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 2 | ||||
-rw-r--r-- | src/actions.c | 9 |
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; |