Lagrange [dev]

Widget: Removed keyboard focus kludge

=> a644299eb27ef496728575f121a7a33a77014907

diff --git a/res/about/version.gmi b/res/about/version.gmi
index 18045a83..5ff4dca7 100644
--- a/res/about/version.gmi
+++ b/res/about/version.gmi
@@ -14,6 +14,7 @@ New features:
 Changes and enhancements:
 
 Fixes:
+* Holding down Alt/Option (link number modifier key) while opening a query link would prevent the prompt dialog from having input focus.
 
 ## 1.17.6
 * Fixed memory leak: fetched pages were not always released from memory (reference miscount).
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 2bffea74..4e00ece1 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -513,8 +513,6 @@ static void setLinkNumberMode_DocumentWidget_(iDocumentWidget *d, iBool set) {
 #if defined (iPlatformAppleDesktop)
         enableMenuItemsOnHomeRow_MacOS(!set);
 #endif
-        /* Ensure all keyboard events come here first. */
-        setKeyboardGrab_Widget(set ? as_Widget(d) : NULL);
         if (d->menu) {
             setFlags_Widget(d->menu, disabled_WidgetFlag, set);
         }
diff --git a/src/ui/widget.c b/src/ui/widget.c
index 695878ca..843a46bd 100644
--- a/src/ui/widget.c
+++ b/src/ui/widget.c
@@ -2443,13 +2443,6 @@ void setFocus_Widget(iWidget *d) {
     }
 }
 
-void setKeyboardGrab_Widget(iWidget *d) {
-    iWindow *win = d ? window_Widget(d) : get_Window();
-    iAssert(win);
-    win->focus = d;
-    /* no notifications sent */
-}
-
 iWidget *focus_Widget(void) {
     iWindow *win = get_Window();
     return win ? win->focus : NULL;
diff --git a/src/ui/widget.h b/src/ui/widget.h
index 9674cca3..69f46b92 100644
--- a/src/ui/widget.h
+++ b/src/ui/widget.h
@@ -359,7 +359,6 @@ int         backgroundFadeColor_Widget  (void);
 
 const iWidget *focusRoot_Widget     (const iWidget *);
 void        setFocus_Widget         (iWidget *); /* widget must be flagged `focusable` */
-void        setKeyboardGrab_Widget  (iWidget *); /* sets focus on any widget */
 iWidget *   focus_Widget            (void);
 iBool       setHover_Widget         (iWidget *);
 iWidget *   hover_Widget            (void);
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/dev/cdiff/a644299eb27ef496728575f121a7a33a77014907
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
30.082463 milliseconds
Gemini-to-HTML Time
0.171017 milliseconds

This content has been proxied by September (ba2dc).