Kaydet (Commit) 4e13a556 authored tarafından Nick Treleaven's avatar Nick Treleaven

Only construct-complete when the editor widget has focus.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1438 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 4baeb619
......@@ -6,6 +6,8 @@
* doc/geany.docbook:
Add filtering out version control files with Extra options info to
Find in Files section.
* src/keybindings.c:
Only construct-complete when the editor widget has focus.
2007-04-03 Nick Treleaven <nick.treleaven@btinternet.com>
......
......@@ -587,8 +587,10 @@ static gboolean check_construct_completion(GdkEventKey *event)
if (keys[i]->key == event->keyval && keys[i]->mods == event->state)
{
gint idx = document_get_cur_idx();
GtkWidget *focusw = gtk_window_get_focus(GTK_WINDOW(app->window));
if (DOC_IDX_VALID(idx))
// keybinding only valid when scintilla widget has focus
if (DOC_IDX_VALID(idx) && focusw == GTK_WIDGET(doc_list[idx].sci))
{
ScintillaObject *sci = doc_list[idx].sci;
gint pos = sci_get_current_position(sci);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment