diff options
author | portix <none@none> | 2013-02-19 21:55:36 +0100 |
---|---|---|
committer | portix <none@none> | 2013-02-19 21:55:36 +0100 |
commit | f614ebb8fe343a2ef3ee14c68ee3317fa3f968b6 (patch) | |
tree | 9ff1aef587135f99a6e028cdabb8a76488efc8d6 /src/callback.c | |
parent | a4ff0b6bb050cfc6533a0f2f0bed9102009ad176 (diff) | |
download | dwb-f614ebb8fe343a2ef3ee14c68ee3317fa3f968b6.zip |
Search history, use mutex for global_unbind
Diffstat (limited to 'src/callback.c')
-rw-r--r-- | src/callback.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/callback.c b/src/callback.c index ebbf2d36..e62a435c 100644 --- a/src/callback.c +++ b/src/callback.c @@ -116,12 +116,15 @@ callback_entry_key_press(GtkWidget* entry, GdkEventKey *e) else if (mode & COMPLETION_MODE && !DWB_COMPLETE_KEY(e) && !e->is_modifier && !CLEAN_STATE(e)) completion_clean_completion(set_text); else if (mode == FIND_MODE) - return false; + { + goto skip; + } else if (DWB_COMPLETE_KEY(e)) { completion_complete(dwb_eval_completion_type(), e->state & GDK_SHIFT_MASK || e->keyval == GDK_KEY_Up); return true; } +skip: if (dwb_eval_override_key(e, CP_OVERRIDE_ENTRY)) ret = true; return ret; |