Changeset 173860 in webkit


Ignore:
Timestamp:
Sep 22, 2014 6:05:55 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL][WK2] Minibrowser : Add keyboard support for page reload while ignoring cache
https://bugs.webkit.org/show_bug.cgi?id=136813

Patch by Rohit Kumar <kumar.rohit@samsung.com> on 2014-09-22
Reviewed by Gyuyoung Kim.

Ctrl+r is used for page reload along with F5. Ctrl+Shift+r and Ctrl+F5 is used for page reload while ignoring cache.

  • MiniBrowser/efl/main.c:

(on_key_down):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r173851 r173860  
     12014-09-22  Rohit Kumar  <kumar.rohit@samsung.com>
     2
     3        [EFL][WK2] Minibrowser : Add keyboard support for page reload while ignoring cache
     4        https://bugs.webkit.org/show_bug.cgi?id=136813
     5
     6        Reviewed by Gyuyoung Kim.
     7
     8        Ctrl+r is used for page reload along with F5. Ctrl+Shift+r and Ctrl+F5 is used for page reload while ignoring cache.
     9
     10        * MiniBrowser/efl/main.c:
     11        (on_key_down):
     12
    1132014-09-22  Daniel Bates  <dabates@apple.com>
    214
  • trunk/Tools/MiniBrowser/efl/main.c

    r173750 r173860  
    523523    Eina_Bool ctrlPressed = evas_key_modifier_is_set(mod, "Control");
    524524    Eina_Bool altPressed = evas_key_modifier_is_set(mod, "Alt");
     525    Eina_Bool shiftPressed = evas_key_modifier_is_set(mod, "Shift");
    525526
    526527    if (!strcmp(ev->key, "Left") && altPressed) {
     
    539540        info("Set encoding (F3) pressed. New encoding to %s", encodings[currentEncoding]);
    540541        ewk_view_custom_encoding_set(ewk_view, encodings[currentEncoding]);
    541     } else if (!strcmp(ev->key, "F5")) {
    542         info("Reload (F5) was pressed, reloading.");
     542    } else if ((!strcmp(ev->key, "F5") && ctrlPressed) || (!strcmp(ev->key, "r") && (shiftPressed & ctrlPressed))) {
     543        info("Reload ignoring cache (Ctrl+F5 or Ctrl+Shift+r) was pressed, reloading and bypassing cache...");
     544        ewk_view_reload_bypass_cache(ewk_view);
     545    } else if (!strcmp(ev->key, "F5") || (!strcmp(ev->key, "r") && ctrlPressed)) {
     546        info("Reload (F5 or Ctrl+r) was pressed, reloading...");
    543547        ewk_view_reload(ewk_view);
    544548    } else if (!strcmp(ev->key, "F6") || !strcmp(ev->key, "Escape")) {
Note: See TracChangeset for help on using the changeset viewer.