MATLAB: Does long-press to insert an accented character on Mac prevent further input in the MATLAB Editor and Command Window

accentedcharactercommanddockingeditorlongmacosMATLABpresswindow

Best Answer

  • This is an issue with the underlying Java libraries on macOS.
    There are a few solutions to this issue:
    1. Upgrading to MacOS 10.15.4 or later will resolve the problem permanently.
    2. If that is not an option, you can undock the Editor or Command Window as a fix for the immediate issue. Please note the issue will reoccur if the Editor or Command Window are docked again.
    3. If you do not need to enter such characters, then you can run the following command in the Mac terminal :
    defaults write com.mathworks.matlab ApplePressAndHoldEnabled -bool false