projects
/
uzbl-mobile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7ce9e7
)
Code simplification in insert_mode handling
author
Premysl 'Anydot' Hruby
<dfenze@gmail.com>
Thu, 30 Apr 2009 22:20:40 +0000
(
00:20
+0200)
committer
Premysl 'Anydot' Hruby
<dfenze@gmail.com>
Thu, 30 Apr 2009 22:20:40 +0000
(
00:20
+0200)
uzbl.c
patch
|
blob
|
history
diff --git
a/uzbl.c
b/uzbl.c
index
016f66a
..
5493a59
100644
(file)
--- a/
uzbl.c
+++ b/
uzbl.c
@@
-579,9
+579,9
@@
key_press_cb (WebKitWebView* page, GdkEventKey* event)
|| event->keyval == GDK_Up || event->keyval == GDK_Down || event->keyval == GDK_Left || event->keyval == GDK_Right)
return FALSE;
- /* turn of insert mode */
+ /* turn off insert mode (if always_insert_mode is not used) */
if (insert_mode && (event->keyval == GDK_Escape)) {
- insert_mode = !insert_mode || always_insert_mode;
+ insert_mode = always_insert_mode;
update_title();
return TRUE;
}