Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

System text substitutions no longer working #333

Open
sebj opened this issue Mar 2, 2017 · 7 comments
Open

System text substitutions no longer working #333

sebj opened this issue Mar 2, 2017 · 7 comments

Comments

@sebj
Copy link

sebj commented Mar 2, 2017

The text substitutions in System Preferences => Keyboard => Text no longer work in the new message text field. I'm not entirely sure they worked in the old version of Goofy, but I could have sworn they did..

@MustafaHaddara
Copy link

They definitely worked in the old version. I'd guess that this is probably an Electron problem...they don't use the standard system stuff so all of the macOS specific functionality (ex. touch bar, text substitutions, spell check, etc.) is gone.

@RvMouche
Copy link
Contributor

RvMouche commented Mar 3, 2017

It's an electron problem indeed, see issues electron/electron#3211 and electron/electron#3210

I've found this: might be usable: https://github.com/hokein/electron-sample-apps/tree/master/spell-check. I thought spell-check and text substitutions are combined in macOS' API's. Unfortunately I don't have the time to try it myself and PR it.

@RvMouche
Copy link
Contributor

RvMouche commented Mar 3, 2017

If text substitutions aren't in the spell-check API, we can also use: https://github.com/CharlieHess/electron-text-substitutions .

@jklp jklp added the bug label Nov 8, 2018
@jklp jklp mentioned this issue Feb 11, 2019
@jklp jklp added this to the 3.4.1 milestone Feb 11, 2019
@jklp jklp modified the milestones: 3.4.1, 3.4.2, 3.4.3 Feb 12, 2019
@jklp
Copy link
Collaborator

jklp commented Feb 18, 2019

Sorry I'm a little stumped with this one .. I added electron-text-substitutions though as part of the API I need to get the input field to decorate - but there doesn't seem to be an input field I can select as the input box is using a bunch of <spans> to render (it must be listening globally for keypresses or something?)

My JavaScript/DOM-fu isn't good enough to figure this out - if someone has a solution I'm all ears

@jklp jklp modified the milestones: 3.4.3, 3.4.4 Feb 24, 2019
@jklp jklp modified the milestones: 3.4.4, 3.4.5, 3.4.6, 3.4.7 Aug 12, 2019
@jklp
Copy link
Collaborator

jklp commented Dec 7, 2019

Seems to be working since upgrading to Electron 7!

@jklp jklp closed this as completed Dec 7, 2019
@jklp
Copy link
Collaborator

jklp commented Dec 8, 2019

Weird, I've noticed some weird behaviour in the text replacement feature (sorry I didn't pick it up initially as I use another text substitution app (a-text) which masked the bug) where after substitution, it'd print both the original (un-replaced) text and the replaced text.

I checked on the latest build of Chrome and it looks like it's happening there too - so most likely a messenger.com bug - not a Goofy / Electron bug 😕

(btw, I noticed they're not using an HTML text field for input but a custom control - which makes it even harder to patch on the Goofy end)

@jklp jklp modified the milestones: 3.5.2, 3.5.3 Dec 14, 2019
@jklp
Copy link
Collaborator

jklp commented Dec 14, 2019

Oof, this no longer works as had to revert to Electron 6 to get #471 working (I'd much rather have calls working again than text substitutions).

Wil leave this scheduled for the next milestone - hopefully either messenger.com or Electron 8 fix this problem, then we can have this working again in the next release.

@jklp jklp removed this from the 3.5.3 milestone Dec 14, 2019
@jklp jklp added this to the 3.5.4 milestone Dec 14, 2019
@jklp jklp reopened this Dec 14, 2019
@jklp jklp modified the milestones: 3.5.4, 3.5.5 Feb 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants