gecko-dev/widget/headless
Masayuki Nakano a25988774a Bug 1685491 - part 5: Move the code remapping arrow keys in vertical content to `NativeKeyBindings` r=smaug,jfkthame
Currently, this feature is implemented only on Linux and macOS (see also
bug 1077515 and bug 1301497), and the code is really similar each other.
Additionally, it always tries to query selection to check whether the caret is
in vertical content or not if arrow keys are pressed.  For avoiding a lot of
query, this patch makes `TextEventDispatcher` cache writing mode at every
selection change notification.  However, unfortunately, it's not available when
non-editable content has focus, but it should be out of scope of this bug since
it requires a lot of changes.

Anyway, with this patch, we can write a mochitest only on Linux and macOS.
The following patch adds a test for this as a fix of bug 1103374.

Differential Revision: https://phabricator.services.mozilla.com/D102881
2021-02-02 03:29:31 +00:00
..
tests
HeadlessClipboard.cpp
HeadlessClipboard.h
HeadlessClipboardData.cpp
HeadlessClipboardData.h
HeadlessCompositorWidget.cpp
HeadlessCompositorWidget.h
HeadlessKeyBindings.cpp Bug 1685491 - part 5: Move the code remapping arrow keys in vertical content to `NativeKeyBindings` r=smaug,jfkthame 2021-02-02 03:29:31 +00:00
HeadlessKeyBindings.h Bug 1685491 - part 5: Move the code remapping arrow keys in vertical content to `NativeKeyBindings` r=smaug,jfkthame 2021-02-02 03:29:31 +00:00
HeadlessKeyBindingsCocoa.mm Bug 1685491 - part 5: Move the code remapping arrow keys in vertical content to `NativeKeyBindings` r=smaug,jfkthame 2021-02-02 03:29:31 +00:00
HeadlessLookAndFeel.h
HeadlessLookAndFeelGTK.cpp
HeadlessScreenHelper.cpp
HeadlessScreenHelper.h
HeadlessSound.cpp
HeadlessSound.h
HeadlessThemeGTK.cpp
HeadlessThemeGTK.h
HeadlessWidget.cpp Bug 1685491 - part 5: Move the code remapping arrow keys in vertical content to `NativeKeyBindings` r=smaug,jfkthame 2021-02-02 03:29:31 +00:00
HeadlessWidget.h Bug 1685491 - part 5: Move the code remapping arrow keys in vertical content to `NativeKeyBindings` r=smaug,jfkthame 2021-02-02 03:29:31 +00:00
HeadlessWidgetTypes.ipdlh
moz.build