Page 1 of 1

[SOLVED][0.17.23] Accent menu popup (macOS)

Posted: Mon Apr 01, 2019 9:12 pm
by cookietoaster
Since the upgrade to 0.17 a new issue appeared while playing on mac.

In macOS there's a feature called the accent menu where you can hold a key while focusing a text input field and a menu with possible accent variations appears. Walking around in-game (and for example holding the A key) also triggers this popup in the upper left corner.

Before 0.17 this wasn't the case so I guess it's a bug.

Additional Info:
- Factorio 0.17.23
- macOS 10.14.4
- MacBook Pro (Retina, 15-inch, Mid 2015)

Steps to reproduce:
- Start a new game, or load a save (vanilla or modded)
- Press and hold any key with possible accents

Example of the issue in-game:
accent_popup.png
accent_popup.png (573.65 KiB) Viewed 2273 times

EDIT: Added factorio log file

Re: [0.17.23][macOS] Accent menu popup

Posted: Wed Jun 19, 2019 1:22 pm
by posila
Thanks for the report.

Intially, I wasn't able to reproduce this. By default I was able to get the Accent menu show up in TextEdit, but not in the game.
Only after I ran following command in macOS terminal

Code: Select all

defaults write -g ApplePressAndHoldEnabled -bool true
I was able to reproduce the issue. However, SDL makes and attempt to disable this, but I guess the command forces it enabled.

Try to open Utilities -> Terminal and run command

Code: Select all

defaults delete -g ApplePressAndHoldEnabled

Re: [0.17.23][macOS] Accent menu popup

Posted: Wed Jun 19, 2019 3:21 pm
by cookietoaster
Hi there

I tried the second command and you were right. The menu now pops up in Textedit but not in Factorio, as intended. A while back I globally disabled the accent menu per command, but reenabled it a few weeks later, so this all makes sense.

Thanks for looking into it :)