diff options
author | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-19 14:57:06 +0000 |
---|---|---|
committer | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-19 14:57:06 +0000 |
commit | ac705b08019c9310ceee443ea0fbcea719eb6a45 (patch) | |
tree | 4cc0d9e57c2ea558f4edf755338e1e672784b946 /chrome/browser/cocoa/browser_window_controller.mm | |
parent | 2b6369f6588d2498eb473299e21fd9f471904e9b (diff) | |
download | chromium_src-ac705b08019c9310ceee443ea0fbcea719eb6a45.zip chromium_src-ac705b08019c9310ceee443ea0fbcea719eb6a45.tar.gz chromium_src-ac705b08019c9310ceee443ea0fbcea719eb6a45.tar.bz2 |
Added Shift-Reload support for Mac.
On Mac, holding down shift while pressing the reload button now reloads the
page ignoring any caches.
Command-Shift-R doesn't do anything, just like in Safari.
BUG=36245
TEST=visit astronomy picture of the day; hit reload, picture pops
up quickly; hit shift-reload, picture loads slowly
Review URL: http://codereview.chromium.org/651033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39444 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/browser_window_controller.mm')
-rw-r--r-- | chrome/browser/cocoa/browser_window_controller.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/browser_window_controller.mm b/chrome/browser/cocoa/browser_window_controller.mm index 0b43b7a..5fc8bfb 100644 --- a/chrome/browser/cocoa/browser_window_controller.mm +++ b/chrome/browser/cocoa/browser_window_controller.mm @@ -911,6 +911,10 @@ // 'isKindofClass' check is necessary. [targetController locationBarBridge]->Revert(); } + NSUInteger modifierFlags = [[NSApp currentEvent] modifierFlags]; + if (modifierFlags & NSShiftKeyMask) { + tag = IDC_RELOAD_IGNORING_CACHE; + } break; } DCHECK(targetController->browser_.get()); |