Changeset 253027 in webkit


Ignore:
Timestamp:
Dec 3, 2019 1:28:17 AM (4 years ago)
Author:
Carlos Garcia Campos
Message:

Unreviewed. Focus the location bar on CTRL+l in GTK MiniBrowser

  • MiniBrowser/gtk/BrowserWindow.c:

(focusLocationBar):
(browser_window_init):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r253025 r253027  
     12019-12-03  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        Unreviewed. Focus the location bar on CTRL+l in GTK MiniBrowser
     4
     5        * MiniBrowser/gtk/BrowserWindow.c:
     6        (focusLocationBar):
     7        (browser_window_init):
     8
    192019-12-02  Sihui Liu  <sihui_liu@apple.com>
    210
  • trunk/Tools/MiniBrowser/gtk/BrowserWindow.c

    r252356 r253027  
    556556}
    557557
     558static void focusLocationBar(BrowserWindow *window)
     559{
     560    gtk_widget_grab_focus(window->uriEntry);
     561}
     562
    558563static void reloadPage(BrowserWindow *window)
    559564{
     
    942947        g_cclosure_new_swap(G_CALLBACK(openPrivateWindow), window, NULL));
    943948
     949    /* Focus location bar */
     950    gtk_accel_group_connect(window->accelGroup, GDK_KEY_L, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE,
     951        g_cclosure_new_swap(G_CALLBACK(focusLocationBar), window, NULL));
     952
    944953    /* Reload page */
    945954    gtk_accel_group_connect(window->accelGroup, GDK_KEY_F5, 0, GTK_ACCEL_VISIBLE,
Note: See TracChangeset for help on using the changeset viewer.