Commit Graph

39 Commits

Author SHA1 Message Date
Tim Chien
655f24d34c Bug 1175399 - Move readonly detection into isFocusableElement. r=janjongboom 2015-07-03 01:42:00 +02:00
Tim Chien
81f8ba02c3 Bug 1162360 - Dispatches focus and blur message synchronously, r=yxl 2015-05-21 20:13:00 +02:00
Ryan VanderMeulen
ea65ed2ffe Backed out changeset 0cd8eeb72c1b (bug 1162360) for suspicion of causing share_activity_test.js permafail.
CLOSED TREE
2015-05-29 13:06:29 -04:00
Tim Chien
62fad4932e Bug 1162360 - Dispatches focus and blur message synchronously. r=yxl 2015-05-21 20:13:00 -04:00
Tim Chien
6f57e05bf9 Bug 1122463 - Don't blur the input when submit is cancelled. r=yxl 2015-02-11 21:39:00 -05:00
Morris Tseng
f0ddc0e2ba Bug 1125045 - yAxisVisible should compare with offset.height instead of pos.width. r=xyuan 2015-02-26 01:01:00 +01:00
Masayuki Nakano
32cd0c7c75 Bug 1119609 part.18 Add nsITextInputProcessor.commitCompositionWith() and drop aCommitString from nsITextInputProcessor.commitComposition() r=smaug, sr=smaug 2015-02-19 15:50:21 +09:00
Masayuki Nakano
1ec237cdfe Bug 1119609 part.12 nsITextInputProcessor should take KeyboardEvent as an argument of composition releated methods for dispatching key events around composition events r=smaug, sr=smaug 2015-02-19 15:50:20 +09:00
Masayuki Nakano
b9ddb90367 Bug 1131026 Rename nsITextInputProcessor.init() and .initForTests() to .beginInputTransaction() and .beginInputTransactionForTests() r=smaug, sr=smaug 2015-02-10 17:09:29 +09:00
Masayuki Nakano
ff7661cbb2 Bug 917322 part.19 Add nsITextInputProcessorCallback r=smaug+xyuan, sr=smaug 2015-01-28 15:27:33 +09:00
Masayuki Nakano
306f13cd2e Bug 917322 part.13 B2G should use nsITextInputProcessor in forms.js r=smaug+xyuan 2015-01-28 15:27:32 +09:00
Olli Pettay
01fdc982c5 Bug 1079236, Event.composedTarget to reveal the original non-native-anonymous event target, r=wchen, r=smaug 2015-01-23 13:55:46 +02:00
Masayuki Nakano
d7362c6250 Bug 1077345 part.8 CompositionManager.endComposition() in forms.js should use nsIDOMWindowUtils.sendCompositionEvent('compositioncommit') r=xyuan 2014-11-25 14:02:32 +09:00
Tim Chien
fba7eb64b2 Bug 1079455 - Drop edit action when focus message is not yet send. r=yxl 2014-10-23 20:22:00 +02:00
Tim Chien
91639fda02 Bug 1079728 - Ensure that the blur message is sent after removing focus. r=yxl 2014-10-21 06:57:00 -04:00
Jan Jongboom
575f4acaec Bug 1059163 - Add a mutation observer to contenteditable elements to detect selection changes that nsISelectionPrivate misses. r=yxl 2014-10-09 06:06:00 -04:00
Ting-Yu Chou
7e52cb1029 Bug 1066515 - Part 1: Set selection range directly when replacing within current text node. r=yxl 2014-10-03 14:09:53 +08:00
Carsten "Tomcat" Book
d7c19a9c6d Backed out changeset 46c1cce018de (bug 1059163) for frequent test failures of the new test 2014-10-09 12:08:09 +02:00
Jan Jongboom
8719a4bd63 Bug 1059163 - Add a mutation observer to contenteditable elements to detect selection changes that nsISelectionPrivate misses r=xyuan 2014-10-08 16:27:27 -07:00
Masayuki Nakano
f1907c5e20 Bug 975383 part.7 Remove compositionupdate dispatchers in forms.js of B2G r=yxl 2014-10-03 15:33:49 +09:00
Tim Chien
a698ccd83d Bug 1057898 - Tap between two inputs should result one inputcontextchange event. r=yxl 2014-09-04 19:43:00 -04:00
Jan Jongboom
e53af01e85 Bug 1026997 - Use nsISelectionPrivate to track selection changes in forms.js. r=yxl 2014-08-13 02:12:00 -04:00
Bill McCloskey
243bfc82d7 Bug 921299 - Don't consider all keypresses to be synthetic events on b2g (r=smaug) 2014-07-10 16:46:28 -07:00
Jim Blandy
b6b202b6bb Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Yuan Xulei
ad6d9bc72b Bug 986992 - Part 1: Merge navigator.mozKeyboard to navigator.mozInputMethod. r=fabrice 2014-03-31 10:38:45 +08:00
Wei Deng
79f324822a Bug 960946 - Correct events which can be generated and sent repeatedly from longpressing a key. r=yxl 2014-03-25 15:46:52 +08:00
Wei Deng
22eb57c00c Bug 978918 - Filter hidden <br> when get content editable text length. r=yxl 2014-03-20 18:37:00 +08:00
Yuan Xulei
31395a6a84 Bug 952724 - Make InputContext#replaceSurroundingText match spec. r=janjongboom 2014-01-03 09:17:28 -05:00
Jan Jongboom
ab864d390b Bug 952080 - Rejection state for sendKey. r=yxl 2014-01-02 10:39:26 -05:00
Kevin Grandon
823b7d7feb Bug 942749 - [keyboard] Fix forms.js contenteditable scroll position. r=fabrice 2013-12-13 16:10:56 -05:00
Jan Jongboom
2d5927d37f Bug 944681 - Don't fire inputcontextchange on selection change from mouseup. r=yxl
--HG--
extra : rebase_source : bd6286e8bdec2ceb081d837d9341b54ca69a1886
2013-12-10 10:14:39 -05:00
Kan-Ru Chen (陳侃如)
78b8308500 Bug 941468 - Only load forms.js once per-process. r=yxl 2013-12-08 23:28:47 +08:00
Jan Jongboom
0d52bf6f2b Bug 918863 - MutationObserver doesnt recognize all deleted elements, keypress is fired if keydown is canceled. r=yxl, r=kanru 2013-12-03 08:37:38 -05:00
Jonathan Watt
36225d51de Bug 941367 - Fix JavaScript assertions in dom/inputmethod/forms.js caused by trying to get the selection of non-text controls. r=fabrice
--HG--
extra : rebase_source : eb9b497bb81e165bac9c128b888e2ddbfcb1b02f
2013-11-21 12:54:48 +00:00
Jonathan Watt
b7a8f5797a Bug 940696 - Ensure that Firefox OS brings up the number pad when a user focuses an <input type=number>. r=fabrice 2013-11-20 09:32:46 +00:00
"Kan-Ru Chen (陳侃如)"
c12ab0724d Bug 931746 - Only handle the event from our descendants. r=yxl
---
 dom/inputmethod/forms.js |    7 +++++++
 1 file changed, 7 insertions(+)
2013-11-17 01:07:26 +08:00
Yuan Xulei
dba689957e Bug 932151 - Include forms.js in both desktop and b2g build. r=fabrice
--HG--
rename : b2g/chrome/content/forms.js => dom/inputmethod/forms.js
2013-11-11 09:11:43 -05:00
Ed Morley
742f1392be Backed out changeset f2ed6b24269a (bug 932151) for causing bug 936324
--HG--
rename : dom/inputmethod/forms.js => b2g/chrome/content/forms.js
2013-11-08 10:59:31 +00:00
Yuan Xulei
fe6bf603ee Bug 932151 - Include forms.js in both desktop and b2g build. r=fabrice
--HG--
rename : b2g/chrome/content/forms.js => dom/inputmethod/forms.js
2013-11-07 09:02:25 -05:00