summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2013-05-13 16:28:44 +0200
committerportix <portix@gmx.net>2013-05-13 16:28:44 +0200
commit6bcabf64b98e18e6e70fb7da35572b2b34bfcf05 (patch)
treed244fef371c03953aca5c5f4eaa04a51d1e5f6cc
parent97921f6872a8d30340d1b5583349ff85c94f7961 (diff)
downloaddwb-6bcabf64b98e18e6e70fb7da35572b2b34bfcf05.zip
Enable entry shortcuts for util.tabComplete
-rw-r--r--src/callback.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/callback.c b/src/callback.c
index 05916830..30b2b707 100644
--- a/src/callback.c
+++ b/src/callback.c
@@ -88,7 +88,10 @@ callback_entry_key_press(GtkWidget* entry, GdkEventKey *e)
return true;
}
else if (mode & COMPLETE_SCRIPTS && !DWB_COMPLETE_KEY(e))
- return dwb.state.script_comp_readonly;
+ if (dwb.state.script_comp_readonly)
+ return true;
+ else
+ goto skip;
else if (e->keyval == GDK_KEY_BackSpace && !complete)
return false;
else if (mode == HINT_MODE)