Created
February 26, 2013 08:23
-
-
Save nh7a/5036950 to your computer and use it in GitHub Desktop.
Using Backspace to Go Back is just ridiculous.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: chrome/browser/global_keyboard_shortcuts_mac.mm | |
=================================================================== | |
--- chrome/browser/global_keyboard_shortcuts_mac.mm (revision 184327) | |
+++ chrome/browser/global_keyboard_shortcuts_mac.mm (working copy) | |
@@ -79,8 +79,10 @@ | |
//--- ----- ----- ------ | |
{true, false, false, false, kVK_LeftArrow, 0, IDC_BACK}, | |
{true, false, false, false, kVK_RightArrow, 0, IDC_FORWARD}, | |
+#if USE_IDIOTIC_SHORTCUT_KEYS | |
{false, false, false, false, kVK_Delete, 0, IDC_BACK}, | |
{false, true, false, false, kVK_Delete, 0, IDC_FORWARD}, | |
+#endif | |
{true, true, false, false, 0, 'c', IDC_DEV_TOOLS_INSPECT}, | |
{true, true, false, false, kVK_ANSI_Period, 0, | |
IDC_TOGGLE_SPEECH_INPUT}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: WebCore/page/EventHandler.cpp | |
=================================================================== | |
--- WebCore/page/EventHandler.cpp (revision 143784) | |
+++ WebCore/page/EventHandler.cpp (working copy) | |
@@ -3610,10 +3610,12 @@ | |
bool handledEvent = false; | |
+#if USE_IDIOTIC_SHORTCUT_KEYS | |
if (event->shiftKey()) | |
handledEvent = page->goForward(); | |
else | |
handledEvent = page->goBack(); | |
+#endif | |
if (handledEvent) | |
event->setDefaultHandled(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment