24 lines
1.2 KiB
Diff
24 lines
1.2 KiB
Diff
From: csagan5 <32685696+csagan5@users.noreply.github.com>
|
|
Date: Tue, 9 Mar 2021 19:43:00 +0100
|
|
Subject: Add Alt+D hotkey to focus address bar
|
|
|
|
License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
|
|
---
|
|
.../java/src/org/chromium/chrome/browser/KeyboardShortcuts.java | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java b/chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java
|
|
--- a/chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java
|
|
+++ b/chrome/android/java/src/org/chromium/chrome/browser/KeyboardShortcuts.java
|
|
@@ -152,6 +152,8 @@ public class KeyboardShortcuts {
|
|
KeyEvent.KEYCODE_F, KeyEvent.META_CTRL_ON);
|
|
addShortcut(context, chromeFeatureShortcutGroup, R.string.keyboard_shortcut_address_bar,
|
|
KeyEvent.KEYCODE_L, KeyEvent.META_CTRL_ON);
|
|
+ addShortcut(context, chromeFeatureShortcutGroup, R.string.keyboard_shortcut_address_bar,
|
|
+ KeyEvent.KEYCODE_D, KeyEvent.META_ALT_ON);
|
|
shortcutGroups.add(chromeFeatureShortcutGroup);
|
|
|
|
KeyboardShortcutGroup webpageShortcutGroup = new KeyboardShortcutGroup(
|
|
--
|
|
2.25.1
|