⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 130652 in webkit


Ignore:
Timestamp:
Oct 8, 2012, 10:13:48 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Use Ctrl+n shortcut to create a new window in MiniBrowser / EWebLauncher
​https://bugs.webkit.org/show_bug.cgi?id=98655

Patch by Christophe Dumez <Christophe Dumez> on 2012-10-08
Reviewed by Kenneth Rohde Christiansen.

Use "Ctrl+n" shortcut instead of "F9" to open a new window in
MiniBrowser and EWebLauncher. This is the shortcut that is
commonly used for this action.

  • EWebLauncher/main.c:

(on_key_down):

  • MiniBrowser/efl/main.c:

(on_key_down):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r130646 r130652  
     12012-10-08  Christophe Dumez  <christophe.dumez@intel.com>
     2
     3        [EFL] Use Ctrl+n shortcut to create a new window in MiniBrowser / EWebLauncher
     4        https://bugs.webkit.org/show_bug.cgi?id=98655
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        Use "Ctrl+n" shortcut instead of "F9" to open a new window in
     9        MiniBrowser and EWebLauncher. This is the shortcut that is
     10        commonly used for this action.
     11
     12        * EWebLauncher/main.c:
     13        (on_key_down):
     14        * MiniBrowser/efl/main.c:
     15        (on_key_down):
     16
    1172012-10-08  Christophe Dumez  <christophe.dumez@intel.com>
    218
  • trunk/Tools/EWebLauncher/main.c

    r130617 r130652  
    577577        if (currentZoomLevel < MAX_ZOOM_LEVEL && zoom_level_set(obj, currentZoomLevel + 1))
    578578            currentZoomLevel++;
    579     } else if (!strcmp(ev->key, "F9")) {
    580         info("Create new window (F9) was pressed.\n");
     579    } else if (!strcmp(ev->key, "n") && ctrlPressed) {
     580        info("Create new window (Ctrl+n) was pressed.\n");
    581581        browserCreate("http://www.google.com", app->userArgs);
    582582    } else if (!strcmp(ev->key, "g") && ctrlPressed ) {
  • trunk/Tools/MiniBrowser/efl/main.c

    r130646 r130652  
    148148    };
    149149    static int currentEncoding = -1;
     150    Eina_Bool ctrlPressed = evas_key_modifier_is_set(evas_key_modifier_get(e), "Control");
     151
    150152    if (!strcmp(ev->key, "F1")) {
    151153        info("Back (F1) was pressed\n");
    … …  
    166168        info("Stop (F6) was pressed, stop loading.\n");
    167169        ewk_view_stop(obj);
    168     } else if (!strcmp(ev->key, "F9")) {
    169         info("Create new window (F9) was pressed.\n");
     170    } else if (!strcmp(ev->key, "n") && ctrlPressed) {
     171        info("Create new window (Ctrl+n) was pressed.\n");
    170172        Browser_Window *window = window_create(DEFAULT_URL, EINA_FALSE);
    171173        windows = eina_list_append(windows, window);
Note: See TracChangeset for help on using the changeset viewer.