Accented characters cannot be entered correctly in macOS

Thank you. This seems to have also fixed, or at least improved a lot, this bug and probably others related to non latin input. Thank you so much.