diff options
Diffstat (limited to 'examples/config/uzbl/config')
-rw-r--r-- | examples/config/uzbl/config | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/config/uzbl/config b/examples/config/uzbl/config index c3babe0..1ca1770 100644 --- a/examples/config/uzbl/config +++ b/examples/config/uzbl/config @@ -42,6 +42,11 @@ set new_window = sh 'uzbl-browser -u $8' # equivalent to the default beh @on_event LOAD_FINISH @set_status <span foreground="gold">done</span> @on_event LOAD_FINISH spawn @scripts_dir/history.sh +# Generate a FORM_ACTIVE event if a text element on the loaded site +# has initial focus unfortunatelly this only works for text elements, +# yet due to webkit limitations +@on_event LOAD_FINISH js if(document.activeElement.type == 'text') {Uzbl.run("event FORM_ACTIVE");} + # Switch to insert mode if a (editable) html form is clicked @on_event FORM_ACTIVE @set_mode insert # Switch to command mode if anything else is clicked |