diff options
author | Brendan Taylor <whateley@gmail.com> | 2011-05-09 19:12:23 -0600 |
---|---|---|
committer | Brendan Taylor <whateley@gmail.com> | 2011-05-09 19:12:23 -0600 |
commit | 54529db108fc0400f612f48742965c58548f474b (patch) | |
tree | efa26e1c85b182e73eb700c72ead65f96a78603f /examples | |
parent | 44b97f68f3e14f65a21d9c13d6ee50a2112be9c8 (diff) | |
parent | c0bbabfef810b3976705bd1a384ff31735479ff0 (diff) |
Merge remote-tracking branch 'keis/focus-event' into experimental
Conflicts:
src/callbacks.c
src/callbacks.h
Diffstat (limited to 'examples')
-rw-r--r-- | examples/config/config | 2 | ||||
-rwxr-xr-x | examples/data/scripts/follow.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/config/config b/examples/config/config index 029ce57..9507b95 100644 --- a/examples/config/config +++ b/examples/config/config @@ -83,7 +83,7 @@ set download_handler = sync_spawn @scripts_dir/download.sh @on_event LOAD_FINISH spawn @scripts_dir/history.sh # Switch to insert mode if a (editable) html form is clicked -@on_event FORM_ACTIVE @set_mode insert +@on_event FOCUS_ELEMENT sh 'if [ "$1" == INPUT ]; then echo "@set_mode insert" > $UZBL_FIFO; fi' %s # Switch to command mode if anything else is clicked @on_event ROOT_ACTIVE @set_mode command diff --git a/examples/data/scripts/follow.sh b/examples/data/scripts/follow.sh index f08bd29..3f61488 100755 --- a/examples/data/scripts/follow.sh +++ b/examples/data/scripts/follow.sh @@ -10,7 +10,7 @@ shift case "$result" in XXXEMIT_FORM_ACTIVEXXX) # a form element was selected - printf 'event FORM_ACTIVE\nevent KEYCMD_CLEAR\n' > "$UZBL_FIFO" + printf 'event KEYCMD_CLEAR\n' > "$UZBL_FIFO" ;; XXXRESET_MODEXXX) # a link was selected, reset uzbl's input mode |