Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppleSpell being triggered? #2404

Closed
rossburton opened this issue Mar 25, 2021 · 4 comments
Closed

AppleSpell being triggered? #2404

rossburton opened this issue Mar 25, 2021 · 4 comments
Labels
interface Design, UX/UI issues
Milestone

Comments

@rossburton
Copy link

I might be entirely mistaken, but I'm running a job inside UTM which causes a lot of output and AppleSpell is showing as taking 50% CPU in the Activity Monitor.

Is the spell checker running on the console?

Feel free to tell me I'm an idiot but there's pretty strong correlation between this job running and the CPU usage...

@osy
Copy link
Contributor

osy commented Apr 24, 2021

This all goes through Apple's WKWebView apis so I'm not surprised if they do something weird like run spell checker on all the output. Maybe there's some way to disable it for a webpage?

@osy osy added the interface Design, UX/UI issues label Apr 24, 2021
@rossburton
Copy link
Author

I've no idea how the terminal is implemented but maybe it just needs spellcheck=false added to the right elements?

@osy
Copy link
Contributor

osy commented Apr 25, 2021

Hmm, the following is set for the terminal area:

  this.screen_ = doc.createElement('x-screen');
  this.screen_.setAttribute('contenteditable', 'true');
  this.screen_.setAttribute('spellcheck', 'false');
  this.screen_.setAttribute('autocomplete', 'off');
  this.screen_.setAttribute('autocorrect', 'off');
  this.screen_.setAttribute('autocapitalize', 'none');

@osy
Copy link
Contributor

osy commented Sep 4, 2021

I tried to do cat /dev/random | xxd and it crashed the webview. Will have to find out what happened there.

@osy osy added this to the v2.3 milestone Sep 4, 2021
@osy osy closed this as completed in 9b79c43 Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interface Design, UX/UI issues
Projects
None yet
Development

No branches or pull requests

2 participants