From c9635a8c9e89c3900a210175f0d3f3cb3723931b Mon Sep 17 00:00:00 2001 From: sabetts Date: Sun, 18 Apr 2004 21:48:42 +0000 Subject: * src/manage.h (ungrab_keys_all_wins): new prototype (grab_keys_all_wins): likewise * src/manage.c (grab_top_level_keys): renamed from grab_prefix_key (all callers updated). Grab all keys in the top level keymap. (ungrab_top_level_keys): renamed from ungrab_prefix_key (all callers updated). ungrab all keys in the top level keymap. (ungrab_keys_all_wins): new function (grab_keys_all_wins): likewise * src/globals.c: (rp_key_hook): rename from rp_prefix_hook. Dependant code updated. (set_rp_window_focus): change 'prefix' hook to 'key' hook. * src/events.c (handle_key): handle a top level key press. (handle_key): new arguments ks, and mod. (key_press): pass the keysym and modifier to handle_key * src/conf.h (TOP_KEYMAP): new define * src/actions.c (cmd_v_split, cmd_h_split): swap names. (user_commands): bind split to cmd_v_split. (initialize_default_keybindings): initialize the top level keymap (cmd_definekey): update the keys grabbed when changing a key on the top level keymap. (cmd_escape): update the escape key in the top level map. (cmd_delkmap): don't allow the deletion of the top level keymap. --- doc/ratpoison.texi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/ratpoison.texi b/doc/ratpoison.texi index 39da7c0..a54e4f2 100644 --- a/doc/ratpoison.texi +++ b/doc/ratpoison.texi @@ -477,8 +477,9 @@ will be executed. The following hooks are available: @table @asis -@item prefix -Run when the prefix key is pressed +@item key +Run when a top level key is pressed (by default the only top level key +is the prefix key). @item switchwin Run when the user switches to a different window in the current frame. @item switchframe -- cgit v1.2.3