зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1612723 - Move reader mode l10n to use keycode. r=Gijs,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D61484 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
8a678ca086
Коммит
b36c4e44b6
|
@ -223,10 +223,12 @@
|
||||||
<key keycode="VK_F11" command="View:FullScreen"/>
|
<key keycode="VK_F11" command="View:FullScreen"/>
|
||||||
#endif
|
#endif
|
||||||
<key id="key_toggleReaderMode"
|
<key id="key_toggleReaderMode"
|
||||||
data-l10n-id="reader-mode-toggle-shortcut"
|
|
||||||
command="View:ReaderView"
|
command="View:ReaderView"
|
||||||
#ifndef XP_WIN
|
#ifdef XP_WIN
|
||||||
modifiers="accel,alt"
|
modifiers="accel,alt"
|
||||||
|
data-l10n-id="reader-mode-toggle-shortcut-windows"
|
||||||
|
#else
|
||||||
|
data-l10n-id="reader-mode-toggle-shortcut-other"
|
||||||
#endif
|
#endif
|
||||||
disabled="true"/>
|
disabled="true"/>
|
||||||
|
|
||||||
|
|
|
@ -113,14 +113,11 @@ history-sidebar-shortcut =
|
||||||
full-screen-shortcut =
|
full-screen-shortcut =
|
||||||
.key = F
|
.key = F
|
||||||
|
|
||||||
# Verify what shortcut for that operation
|
reader-mode-toggle-shortcut-windows =
|
||||||
# are recommended by the Human Interface Guidelines
|
.keycode = VK_F9
|
||||||
# of each platform for your locale.
|
|
||||||
reader-mode-toggle-shortcut =
|
reader-mode-toggle-shortcut-other =
|
||||||
.key = { PLATFORM() ->
|
.key = R
|
||||||
[windows] VK_F9
|
|
||||||
*[other] R
|
|
||||||
}
|
|
||||||
|
|
||||||
picture-in-picture-toggle-shortcut =
|
picture-in-picture-toggle-shortcut =
|
||||||
.key = ]
|
.key = ]
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
# coding=utf8
|
||||||
|
|
||||||
|
# Any copyright is dedicated to the Public Domain.
|
||||||
|
# http://creativecommons.org/publicdomain/zero/1.0/
|
||||||
|
|
||||||
|
from __future__ import absolute_import
|
||||||
|
import fluent.syntax.ast as FTL
|
||||||
|
from fluent.migrate.helpers import transforms_from
|
||||||
|
|
||||||
|
|
||||||
|
def migrate(ctx):
|
||||||
|
"""Bug 1612723 - move reader mode l10n to use keycode, part {index}."""
|
||||||
|
|
||||||
|
ctx.add_transforms(
|
||||||
|
'browser/browser/browserSets.ftl',
|
||||||
|
'browser/browser/browserSets.ftl',
|
||||||
|
transforms_from(
|
||||||
|
"""
|
||||||
|
reader-mode-toggle-shortcut-windows =
|
||||||
|
.keycode = { COPY(browser_path, "toggleReaderMode.win.keycode") }
|
||||||
|
|
||||||
|
reader-mode-toggle-shortcut-other =
|
||||||
|
.key = { COPY(browser_path, "toggleReaderMode.key") }
|
||||||
|
""", browser_path="browser/chrome/browser/browser.dtd")
|
||||||
|
)
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче