VinzSee left a comment (geany/geany-plugins#1370)

Hi. Version 2.1 of Geany addons still have that problem. Please ignore the 
patch submitted on Aug. 22nd last year. Here's an updated version for this 
release:

```patch
--- old/geany-plugins/addons/src/ao_wrapwords.c 2026-05-24 18:23:39.739838525 
+0200
+++ new/geany-plugins/addons/src/ao_wrapwords.c 2026-05-25 09:52:45.686446961 
+0200
@@ -94,12 +94,6 @@
                return FALSE;
 
        sci_obj = document_get_current ()->editor->sci;
+       if (sci_obj == NULL)
+               return FALSE;
+
+       // Prevent the addon from highjacking key strokes when not in focus
+       if (!gtk_widget_has_focus(GTK_WIDGET(sci_obj)))
+               return FALSE;
 
        if (sci_get_selected_text_length2 (sci_obj) == 0)
                return FALSE;
```
This is all that's needed to prevent the editor from stealing accidental (or 
intentional) key strokes.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1370#issuecomment-4532689553
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany-plugins/issues/1370/[email protected]>

Reply via email to