Mac "text replacement" feature does not work in forms
Categories
(Core :: DOM: Editor, enhancement, P3)
Tracking
()
People
(Reporter: jruderman, Assigned: m_kato)
References
(Blocks 1 open bug)
Details
(Keywords: parity-chrome, parity-safari, Whiteboard: [mac:integration])
Attachments
(2 files, 2 obsolete files)
Comment 1•9 years ago
|
||
Comment 2•9 years ago
|
||
Comment 5•5 years ago
|
||
This would be a great improvement - it's one of the few things that I miss from Safari. Chrome recently implemented this, though it hasn't made it to stable yet. Their main bug for this issue is #42434; this commit contains their initial implementation of the feature.
Updated•5 years ago
|
Comment 7•5 years ago
|
||
This would seem like an old bug. Sure hope it gets some new love and attenthion.
Just to give some insight into why this functionality is valuable—I use it heavily in order to type special characters. For instance, I find myself wanting to type "→" a lot, so I set up a keyboard shortcut in macOS's System Preferences to replace instances of "==>" with "→". This is much faster than using the special character picker.
I could use a Firefox extension, but then those shortcuts would only work in Firefox and not other Mac apps—I'd have to manually keep the two in sync. I really miss having working text replacement in Safari.
hey with all respect and gratitude for the software i've consistently used longest so far across OSes, I'm surprised that text replacement hasn't been implemented on macOS since five years. also to pick up on jonathan's post above: I can't recall how many times ive used the OS-search function to bring up text files containing a single string like an account # only to cmd+a cmd+c cmd+q and alt+tab back to firefox. just typing "myiban" into an form would be so much more straightforward. i hope this bug gains some traction and thanks everyone for your work!
Comment 10•4 years ago
|
||
Like others here, this is one of the features I miss most from Safari (after playback controls were implemented, thanks for that). I use text replacements from all sorts of things ("g@@" fills my gmail, I have special characters mapped such as "&shift;" => ⇧ for writing technical docs, "&dis;" => ಠ_ಠ). This feels like one of the last remaining features for FireFox to appear fully integrated with macOS (in my book at least).
Comment 11•4 years ago
|
||
Also expected this to work and came here to find out that it is not and that I am not the bug. :)
Comment 12•4 years ago
|
||
+1, one of the only things holding Firefox from being my daily driver. Please please please implement this feature. Made an account just to say this.
Comment 13•4 years ago
|
||
Markus, should this be tracked somewhere for the ongoing macOS effort?
Comment 14•3 years ago
|
||
I want to use Firefox, but I can't. Because I have many shortcuts that I use every day. Unfortunately, this is the only thing that blocks me.
Comment 15•3 years ago
|
||
I also want to add my voice to those saying that this is kind of a show-stopper.
Any power-user who uses a lot of system-wide text replacements expects them to work everywhere, and Firefox not allowing them just feels broken. There's no good reason for it.
I would love it if this was fixed. Thank you.
Assignee | ||
Comment 16•3 years ago
|
||
Assignee | ||
Comment 17•3 years ago
|
||
Text substitution is one of macOS features to replace text by system settings (System Preferences - Language & Text - Text).
Also, quote substitution and dash substitution are disabled by default since Chrome and Safari are disabled.
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 18•3 years ago
|
||
Writing in to add that just like several others here, I'd also very much like this feature to work in Firefox. It's the only blocker keeping me from using Firefox as my default browser.
Comment 19•3 years ago
|
||
Just created an account to add my voice here. :) I love FireFox so much and I'm using it as my primary desktop browser. But not having standard MacOS text replacements is a real pain in everyday use. As many have already written, I'm using text replacements heavily for certain shortcuts. According to this bug thread it's now 7 years old. Dear contributors, please PLEASE don't let us wait another 7 years...
Comment hidden (advocacy) |
Comment 21•3 years ago
|
||
This is a huge blocker! Please let me know if you need help with that.
Comment 22•3 years ago
|
||
Just chiming in here! Considering how many years-long bugs they recently fixed to improve experience on macOS, I hope this one is not too far away. (Please don't be like that 22 years old "native context menu" bug…)
Assignee | ||
Comment 23•3 years ago
|
||
Comment 24•2 years ago
|
||
Firefox is so close to greatness for me. It's only the fact that Firefox doesn't allow for native MacOS features that makes it awfully frustrating. I frankly wish I knew C++ to be able to contribute to this myself. I hope there's some progress on this and using native MacOS context menus ("lookup" is still missing).
Updated•2 years ago
|
Comment 25•2 years ago
|
||
The severity field for this bug is relatively low, S3. However, the bug has 3 duplicates.
:m_kato, could you consider increasing the bug severity?
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 26•2 years ago
|
||
The severity field for this bug is relatively low, S3. However, the bug has 3 duplicates.
:m_kato, could you consider increasing the bug severity?
This is enhancement bug.
Assignee | ||
Comment 27•2 years ago
|
||
Also,
- This feature breaks an event order in Blink.
- WebKit seems to use sync IPC to implement it. We cannot accept it.
Comment 28•2 years ago
|
||
Please fix this bug — it is really frustrating and breaks expected behavior on macOS. I don't think it can be classified as an "enhancement" in that context. (…former Apple designer here.)
Comment 29•1 year ago
|
||
I do find it odd that FF can take over the function 'fn' keys to control my media, but can't seem to solve a bug so it seems, from eight years ago. I just checked if it would work in Chrome and Safari. Both are capable of doing so. Would be sad to leave FF cause it's not meeting my requirements.
Comment hidden (advocacy) |
Comment hidden (advocacy) |
Comment hidden (advocacy) |
Comment hidden (advocacy) |
Comment hidden (advocacy) |
Comment 36•11 months ago
|
||
This is also requested on Connect. Thread here: https://connect.mozilla.org/t5/ideas/support-macos-text-replacement/idi-p/15219
Comment hidden (advocacy, off-topic) |
Comment 38•7 months ago
|
||
(In reply to Timo from comment #35)
I switched to Firefox from Brave, and the lacking text engine is one of the major disadvantages that seriously hamper my productivity (the other being the unflexibility of search engine definitions compared to Brave/Chrome that just lets me use keywords for whatever the URL template). As a Mac user, simple text editing is just cumbersome in Firefox. It’s not just replacement. For instance, it does not let me choose from the emoji/glyphs pop-up using a shortcut.
Maybe Apple should force Mozilla into using the system text engine.
How could Apple force that change?
Comment hidden (off-topic) |
Assignee | ||
Comment 40•6 months ago
|
||
https://github.com/w3c/input-events/issues/152 will be define that autocorrect uses insertReplacementText
. Safari does, but Chrome uses insertText
. Until autocorrect attribute is implemented, we can implement this issue with pref=off.
Actually, Gecko's internal command event doesn't have replacement command, so I will add it by this issue. (Spellchecker already uses this type).
Assignee | ||
Comment 41•5 months ago
|
||
Assignee | ||
Comment 42•5 months ago
|
||
When using autocorrect, we should use insertReplacementText
according
to https://github.com/w3c/input-events/issues/152. So I would like to
add eContentCommandReplaceText command for this.
Also, this command has an option that is source string text. When
processing text subsitution, parent process doesn't know whether
target replaced text is modified. So I add this option for check.
Assignee | ||
Comment 43•5 months ago
|
||
macOs has the feature for auto-correction.
Other browsers already has this feature, and can control this by
autocorrect
attribute [*1] that is still non-standard.
Since content script can modify source text for autocorrect by
any event handers, autocorrect is run when source text isn't
changed only.
The event order for this implementation is the following.
keydown
event by spacekeypress
event by spacebeforeinput
event (insertText
) by spaceinput
event (insertText
) by spacebeforeinput
event (insertReplacementText
) by autocorrectinput
event (insertReplacementText
) by autocorrectkeyup
event by space
Also, Safari's order is that input event for space is fired after
insertReplacementText
. And, Chrome's is broken. When typing
"omw"
, "w"'s keyup is fired after dismissing a picker. And they
don't use insertReplacementText
.
And, Saferi can prevent this when calling event.preventDefault()
on keypress
event handler for space/enter key. But I guess that
there is no way to get event handler calls preventDefault()
from
widget side on Chrome process.
Updated•5 months ago
|
Comment 44•4 months ago
|
||
Comment 45•4 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/1746282c1779
https://hg.mozilla.org/mozilla-central/rev/442ada2d693b
Comment 46•4 months ago
|
||
Please consider requesting a release note for this.
Assignee | ||
Comment 47•4 months ago
|
||
(In reply to Tom S [:evilpie] from comment #46)
Please consider requesting a release note for this.
Actually, we still turn off this by preferences until we support 'autocorrect' attribute that is still non-standard. Other browsers (WebKit and Blink) can control this feature by this attribute. I don't think to add this to a release note until we turn on it by default. But should I request this even if this requires widget.macos.automatic.text_replacement=true
?
Updated•3 months ago
|
Description
•