Fix canceling of default ALT+ENTER behavior on Windows or Linux