Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Go to file
Masayuki Nakano 80b5c54449 Bug 1464016 - TextInputHandler should not clear alt/ctrl/meta modifiers of eKeyPress event before sending TextEventDispatcher r=m_kato
If a key combination causes text input, we need to dispatch keypress
events without alt/ctrl/meta modifiers since TextEditor won't handle
keyepress events whose altKey, ctrlKey or metaKey is true as inputting
text.

Currently, TextEventDispatcher sets mCharCode of eKeyPress event from
mKeyValue.  Then, when altKey, ctrlKey or metaKey is true, it'll call
WillDispatchKeyboardEvent() and then, TextInputHandler needs to reset
the charCode value from native event information.

However, the problem is, TextInputHandler::InsertText() is called
with control character when control key is pressed and InsertText()
clears the modifier information before sending eKeyPress event to
TextEvenDispatcher so that TextEventDispatcher won't call
WillDispatchKeyboardEvent() even though control key is actually
pressed.  Therefore, TextInputHandler cannot adjust charCode value
and modifier flags in some cases such as control + option + 'a'.

This patch makes InsertText() stop clearing the modifiers and
makes WillDispatchKeyboardEvent() do it instead.  This procedure
is expected by TextEventDispatcher.

MozReview-Commit-ID: Ig6qgRBeQDh

--HG--
extra : rebase_source : 446e8af0e921946f3409d26ede70446248317673
2018-05-24 20:59:48 +09:00
.cargo Bug 1463416 - Update lockfiles and re-vendor rust dependencies. r=Gankro 2018-05-26 11:09:21 -04:00
.vscode Bug 1423565 - Update tasks.json as per documentation. r=rillian 2017-12-06 14:59:35 +01:00
accessible Bug 1460735 part 2. Remove nsIDOMDocument. r=qdot 2018-05-29 13:39:06 -04:00
browser Bug 1459455 - Allow changing the tab separator color. r=jaws 2018-05-30 04:34:51 +02:00
build Bug 1464522 - Count static initializers from the crash reporter symbol files. r=froydnj 2018-05-29 08:48:47 +09:00
caps Bug 1452666. Implement nsISerializable on expanded principals. r=kmag 2018-05-24 02:43:14 -04:00
chrome Bug 1463889 part 1. Switch nsPIDOMWindowOuter::GetFrames to returning an nsDOMWindowList. r=qdot 2018-05-24 23:32:19 -04:00
config Bug 1464522 - Count static initializers from the crash reporter symbol files. r=froydnj 2018-05-29 08:48:47 +09:00
db Bug 1453193 - Upgrade to SQLite 3.23.1. r=mak 2018-04-11 09:04:00 -04:00
devtools Merge inbound to mozilla-central. a=merge 2018-05-30 00:41:41 +03:00
docshell Bug 1463132 - New autofill threshold doesn't work well with redirects. r=adw 2018-05-23 16:49:06 +02:00
dom Bug 1458841 - Use waitForAnimationReadyToRestyle wherever we wait for animation.ready right after animation creation. r=birtles 2018-05-30 09:48:10 +09:00
editor Bug 1463416 - use new WR subpixel positioning API from WR PR 2738. r=Gankro 2018-05-26 11:09:21 -04:00
embedding Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian 2018-01-29 15:20:18 -08:00
extensions Bug 1463637: Remove mozilla-config.h hacks for Hunspell extra includes. r=ted 2018-05-22 20:36:39 -07:00
gfx Merge inbound to mozilla-central. a=merge 2018-05-30 00:41:41 +03:00
gradle/wrapper Bug 1411654 - Part 1: Upgrade to Android-Gradle 3.0+ and build-tools;26.0.2. r=maliu 2017-10-26 11:00:36 -07:00
hal Bug 1463494: delete the sensor observerlist array in a deferred manner r=froyd,jchen 2018-05-25 21:16:28 -04:00
image Bug 1456975 - Check fields in nsMozIconURI deserialization. r=agaynor 2018-05-02 14:53:13 +02:00
intl Bug 1438687 - Add Developer documentation for l10n. r=flod,Pike 2018-04-26 14:19:22 -07:00
ipc Bug 1417784 - Properly implement SyncWithCompositor for WebRender. r=froydnj,sotaro 2018-05-28 11:29:52 -04:00
js Bug 1047514. Re-enable the test_getWebIDLCaller test on Android. r=kmag 2018-05-29 13:38:53 -04:00
layout No bug - Re-alphabetize layout/base/crashtests/crashtests.list. r=thejanitor 2018-05-29 22:39:08 -04:00
media Bug 1464069 - Check for null message in nr_stun_decode_message; r=drno 2018-05-25 11:57:18 -04:00
memory Merge inbound to mozilla-central. a=merge 2018-05-24 12:37:58 +03:00
mfbt Bug 1454385 - Add a single producer single consumer lock and wait free queue to mfbt/. r=froydnj 2018-04-13 17:14:05 +02:00
mobile Bug 1460735 part 1. Remove use of nsIDOMDocument in JS. r=qdot 2018-05-29 13:39:00 -04:00
modules Bug 1454980 - Let tiled parallel skia on unaccelerated windows ride the trains. r=davidb 2018-05-29 10:48:46 -05:00
mozglue Bug 1462727 - Make WindowsMapRemoteView.cpp work with April 2018 Update SDK. r=aklotz 2018-05-19 02:12:14 +09:00
netwerk Bug 1456742 - Make sure to call UpdatePrivateBrowsing() in http channel to properly set private browsing state of the channel when no load group or callbacks have been set on it before AsyncOpen. r=jdm 2018-05-11 06:11:00 -04:00
nsprpub Bug 1432480, land NSPR_4_19_RTM, no code changes, only version numbers. Require version 4.19 for building. r=me 2018-03-05 17:05:18 +01:00
other-licenses Merge inbound to mozilla-central. a=merge 2018-05-09 01:58:44 +03:00
parser Bug 1392106 - random-if many more win7 tests. r=RyanVM 2018-05-29 13:50:33 -04:00
python Bug 1464522 - Count static initializers from the crash reporter symbol files. r=froydnj 2018-05-29 08:48:47 +09:00
security Bug 1460617 - land NSS 3d3e34bb7517 UPGRADE_NSS_RELEASE, r=me 2018-05-28 15:45:28 +02:00
services Bug 1435000 - Refactor client engine queue to use AsyncQueueCaller r=eoger 2018-05-29 14:30:22 -04:00
servo Bug 1463599 - Create a stacking context for contain:paint. r=mattwoodrow 2018-05-28 23:54:01 -07:00
startupcache Bug 1439047 - Part 2: Cleanup StartupCache::PutBuffer hashtable usage. r=froydnj 2018-02-16 15:58:30 -08:00
storage Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj 2018-04-28 12:50:58 -07:00
taskcluster Bug 1464522 - Count static initializers from the crash reporter symbol files. r=froydnj 2018-05-29 08:48:47 +09:00
testing Bug 1464522 - Count static initializers from the crash reporter symbol files. r=froydnj 2018-05-29 08:48:47 +09:00
third_party Bug 1463840 - Vendor attrs via |mach vendor python|; r=ahal 2018-05-24 16:05:50 +01:00
toolkit Bug 1459455 - Allow changing the tab separator color. r=jaws 2018-05-30 04:34:51 +02:00
tools Bug 1464327 - [docs] Fix doc uploading by removing trailing comma, r=gps 2018-05-28 08:44:08 -04:00
uriloader Bug 1463287: Add QueryInterface helper macro for concrete class types. r=bz 2018-05-21 16:33:18 -07:00
view Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj 2018-04-28 12:50:58 -07:00
widget Bug 1464016 - TextInputHandler should not clear alt/ctrl/meta modifiers of eKeyPress event before sending TextEventDispatcher r=m_kato 2018-05-24 20:59:48 +09:00
xpcom Bug 1464134 part 1 - Fix various places to use Realm instead of JSCompartment. r=luke 2018-05-27 11:53:11 +02:00
xpfe/appshell Bug 1463819: Account for the possibility of SyncAttributesToWidget destroying the window. r=enn 2018-05-29 14:21:26 +02:00
.arcconfig Bug 1460463 - Update .arcconfig to make history mutable; r=gps 2018-05-09 23:49:52 +00:00
.clang-format Bug 1414764 - Remove Mozilla specific options to avoid build warnings with gcc and -Wcomment enabled. r=sylvestre 2017-11-06 11:47:40 +02:00
.clang-format-ignore Bug 1464452 - Add richtext to the list of thirdparties r=andi 2018-05-25 09:01:11 -07:00
.cron.yml Bug 1464816 Run periodic file updates on mozilla-esr60 r=ryanvm 2018-05-29 17:38:14 +02:00
.eslintignore Bug 1461785 - Update eslint ignore file to no longer ignore dom/media/mediasource. r=standard8 2018-05-14 16:49:39 -04:00
.eslintrc.js Bug 1463673 - Enable ESLint rule require-expected-throws-or-rejects for toolkit/. r=mossop 2018-05-22 20:52:49 +01:00
.flake8 bug 1463425 - Add more directories to the flake8 list r=ahal 2018-05-22 06:26:22 -07:00
.gdbinit
.gdbinit_python
.gitignore Bug 1439727 - Ignore third_party/python/psutil/tmp/ in VCS; r=nalexander 2018-03-07 08:59:48 -08:00
.hgignore Bug 1454466 - Move raptor in-tree; r=ahal 2018-04-16 17:15:38 -04:00
.hgtags No bug - Tagging mozilla-central ccfd7b716a91241ddbc084cb7116ec561e56d5d1 with FIREFOX_BETA_61_BASE a=release DONTBUILD CLOSED TREE 2018-04-26 20:27:10 +00:00
.inferconfig
.lldbinit
.mailmap NO BUG - Use ato's new address. r=me 2018-02-26 15:59:29 +00:00
.taskcluster.yml Bug 1415868 - change ACTION_TASK_GROUP_ID to be the taskGroupId of the target task; r=aki 2018-05-18 22:16:43 +00:00
.yamllint
.ycm_extra_conf.py
aclocal.m4
AUTHORS Bug 1459852 - Get rid of the AUTHORS list r=mossop 2018-05-08 10:37:41 +02:00
build.gradle Bug 1457863 - 1. Update kotlin to 1.2.41; r=nalexander 2018-05-02 13:49:57 -04:00
Cargo.lock Bug 1463416 - Update lockfiles and re-vendor rust dependencies. r=Gankro 2018-05-26 11:09:21 -04:00
Cargo.toml Bug 1463416 - Update lockfiles and re-vendor rust dependencies. r=Gankro 2018-05-26 11:09:21 -04:00
client.mk Bug 1461836 - Write out complete configure dependencies from configure for consumption by make and non-make backends. r=mshal 2018-05-21 14:01:50 -07:00
client.py
CLOBBER Bug 1454912 - Use a .stub file as the target for all GENERATED_FILES rules; r=nalexander 2018-05-09 08:24:31 -04:00
configure.in
configure.py Bug 1461836 - Write out complete configure dependencies from configure for consumption by make and non-make backends. r=mshal 2018-05-21 14:01:50 -07:00
GNUmakefile
gradle.properties Bug 1453413 - Use aapt2 to build Firefox for Android. r=mcomella 2018-04-11 09:59:22 -07:00
gradlew
LEGAL
LICENSE
mach
Makefile.in Bug 1461836 - Write out complete configure dependencies from configure for consumption by make and non-make backends. r=mshal 2018-05-21 14:01:50 -07:00
moz.build Bug 1346026 - Vendor pipenv 2018.5.18 and transient dependencies; r=ahal 2018-05-17 19:06:20 +01:00
moz.configure Bug 1462493 - Add a check to warn about sccache usage with tup; r=chmanchester 2018-05-24 15:10:17 -04:00
mozilla-config.h.in Bug 1463637: Remove mozilla-config.h hacks for Hunspell extra includes. r=ted 2018-05-22 20:36:39 -07:00
old-configure.in Bug 1461304 - Windows bustage eg: /js/src/wasm/WasmBinaryToAST.cpp when Gecko 62 merges to Beta on 2018-06-14. r=froydnj. 2018-05-27 09:39:06 +02:00
package-lock.json Bug 1459455 - Revert accidentally-landed package-lock.json changes. 2018-05-29 22:43:42 -04:00
package.json Bug 1464100 - Update eslint-plugin-no-unsanitized to v3.0.2. r=ahal 2018-05-24 16:54:54 +01:00
Pipfile Bug 1463840 - Vendor attrs via |mach vendor python|; r=ahal 2018-05-24 16:05:50 +01:00
Pipfile.lock Bug 1463840 - Vendor attrs via |mach vendor python|; r=ahal 2018-05-24 16:05:50 +01:00
README.txt Bug 1460030 - Update the nightly URL in the README.txt file r=kohei 2018-05-08 21:22:10 +02:00
settings.gradle Bug 1444546 - Part 2: Build annotationProcessors with Gradle. r=jchen 2018-02-22 16:11:14 -08:00
test.mozbuild

An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    https://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    https://developer.mozilla.org/en/docs/Creating_a_patch
    https://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

If you have a question about developing Mozilla, and can't find the solution
on https://developer.mozilla.org, you can try asking your question in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

You can download nightly development builds from the Mozilla FTP server.
Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy. Firefox nightlies, for example, can be found at:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://www.mozilla.org/firefox/channel/desktop/#nightly