diff options
author | Robert Manea <gotmor@gmail.com> | 2009-09-14 17:13:44 +0200 |
---|---|---|
committer | Robert Manea <gotmor@gmail.com> | 2009-09-14 17:13:44 +0200 |
commit | dd1129b17e6e8470bb639dffa0285dfdbe291d87 (patch) | |
tree | 923687476198318381535780771b815fb103e8b1 /uzbl-core.c | |
parent | aec0e7afd339bb6473ceda9d9705c1432dca7e1e (diff) |
added request command, fix for insert mode
Diffstat (limited to 'uzbl-core.c')
-rw-r--r-- | uzbl-core.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/uzbl-core.c b/uzbl-core.c index 111da7a..2fa9093 100644 --- a/uzbl-core.c +++ b/uzbl-core.c @@ -447,8 +447,8 @@ send_event_socket(GString *msg) { } } /* buffer events until a socket is set and connected - * or a timeout is encountered - */ + * or a timeout is encountered + */ else { if(!uzbl.state.event_buffer) uzbl.state.event_buffer = g_ptr_array_new(); @@ -988,6 +988,10 @@ struct {const char *key; CommandInfo value;} cmdlist[] = { "chain", {chain, 0} }, { "print", {print, TRUE} }, { "event", {event, 0} }, + /* a request is just semantic sugar to make things more obvious for + * the user, technically events and requests are the very same thing + */ + { "request", {event, 0} }, { "update_gui", {update_gui, TRUE} } }; @@ -2368,7 +2372,7 @@ key_press_cb (GtkWidget* window, GdkEventKey* event) { if(event->type == GDK_KEY_PRESS) key_to_event(event->keyval, GDK_KEY_PRESS); - return TRUE; + return uzbl.behave.insert_mode ? FALSE : TRUE; } gboolean |