Sublime Forum

`alt+e` undetectable on macOS even if disable dead key

#1

I want to use alt+e shortcut but it can’t work.
after reading why-doest-alt-e-work-on-osx and some other tutorials, I think it’s because the dead key affects it being recognized, So I modified the input method key layout to disable dead keys. But alt+e still don’t work.
Did I miss something? (I am not a native English speaker, I am using a translator to talk all, please forgive me for some mistakes.)


Before modify system keylayout:
I can see sublime gets Option+i Option+n and Option+u and get corresponding accent mark, but doesn’t get Option+e ,only get it’s accent mark
(photo1)

At first I thought it was a problem with the key layout.
So I modify input sources key layout file:
before:

        <keyMap index="0">
            <!-- default mode -->
            <key code="14" action="a15"/>
        <keyMap index="3">
            <!-- option -->
            <key code="14" action="a0"/>
        <action id="a0">
            <when state="none" next="1"/>
        </action>
        <action id="a15">
            <when state="none" output="e"/>
            <when state="1" output="é"/>
            <when state="2" output="è"/>
            <when state="3" output="ê"/>
            <when state="4" output="ë"/>
        </action>

after:

        <keyMap index="0">
            <!-- default mode -->
            <key code="14" output="e"/>
        <keyMap index="3">
            <!-- option -->
            <key code="14" output=""/>

Now, all work fine except the alt+e key
(photo2)

I think this shows that the cause is not caused by the accent mark, because the other dead keys work fine as first picture.

I tried at
-1 macOS 12.4 (21F79) sublime 4126
-2 macOS 11.67(20G630) sublime 4126
-3 macOS 11.67(20G630) sublime 3211

1 and 2 seems to prove that this phenomenon is present in Mac.
2 and 3 proof that both version 4 and version 3 have.

windows does not have this problem
(photo3)

Any omissions are welcome to point out, I will answer my process in detail.
Thanks you!

1 Like

#2

Do other applications behave differently?

0 Likes

#3

I’ve done some tests, different software behaves differently:

  • Android Studio 2021.2.1 Patch 1
    before modify key layout file: setting detect as alt+Dead Acute, typing as ´
    after: setting detect as alt+e , typing as a shortcut key, works as expected

  • Xcode Version 13.4.1 (13F100)
    whatever modify or not: setting detect as alt+e, typing as a shortcut key, works as expected

  • VSCode Version: 1.68.1
    whatever modify or not: setting detect as alt+e, typing as a shortcut key, works as expected

  • emacs for osx Version 27.2 (9.0)
    whatever modify or not: setting detect as alt+e, typing as a shortcut key, works as expected

And some non-editor application:

  • Reaper v6.61
    whatever modify or not: setting detect as alt+e, typing as a shortcut key, works as expected

  • Blender Version 3.1.0 (3.1.0 2022-03-09)
    whatever modify or not: setting detect as alt+e, typing as a shortcut key, works as expected

  • Final Cut Pro 10.6.3
    whatever modify or not: setting detect as alt+e, typing as a shortcut key, works as expected

0 Likes

#4

I changed the title to better match the problem I was having:
from: alt+e still don’t work on macOS after modify key layout
to: alt+e undetectable on macOS even if disable dead key

0 Likes

#5

I have the same issue and can confirm that other apps work fine, e.g., in the browser I’ve mapped e to switch tabs and it’s working fine.

In ST 4147 I can see the chr evt for this combo while all other combos output key evt, so somehow this is a special key combo within Sublime

0 Likes