From efa8ee4e63d8c07130c6b02d93ab3cc46209e948 Mon Sep 17 00:00:00 2001 From: Mason Larobina Date: Tue, 1 Dec 2009 17:43:26 +0800 Subject: Added example in the config to reset the keycmd on page navigation. --- examples/config/uzbl/config | 5 +++-- examples/data/uzbl/plugins/bind.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/config/uzbl/config b/examples/config/uzbl/config index 9fda268..fa82fda 100644 --- a/examples/config/uzbl/config +++ b/examples/config/uzbl/config @@ -43,9 +43,11 @@ set new_window = sh 'uzbl-browser -u $8' # equivalent to the default beh # Load start handlers @on_event LOAD_START @set_status wait -# Load commit handler +# Load commit handlers @on_event LOAD_COMMIT @set_status recv @on_event LOAD_COMMIT script @scripts_dir/scroll-percentage.js +# Reset the keycmd on navigation +@on_event LOAD_COMMIT @set_mode # Load finish handlers @on_event LOAD_FINISH @set_status done @@ -63,7 +65,6 @@ set new_window = sh 'uzbl-browser -u $8' # equivalent to the default beh # Misc on_event handlers #@on_event CONFIG_CHANGED print Config changed: %1 = %2 - # === Behaviour and appearance =============================================== set show_status = 1 diff --git a/examples/data/uzbl/plugins/bind.py b/examples/data/uzbl/plugins/bind.py index 3169b15..3e47e38 100644 --- a/examples/data/uzbl/plugins/bind.py +++ b/examples/data/uzbl/plugins/bind.py @@ -294,7 +294,7 @@ def clear_stack(uzbl): uzbl.set_mode(bind_dict['last_mode']) bind_dict['last_mode'] = '' - uzbl.set('keycmd_prompt', force=False) + uzbl.set('keycmd_prompt') def stack_bind(uzbl, bind, args, depth): -- cgit v1.2.3