Dyalog / ride

Cross-platform IDE for Dyalog APL
https://dyalog.github.io/ride
MIT License
206 stars 31 forks source link

Keystrokes involving dead keys do not work #390

Closed mkromberg closed 6 years ago

mkromberg commented 6 years ago

Describe the issue you are having

Keystrokes which require the prefix key to be followed by a dead key like ^ to produce ⍬ or ¨ to produce → do not work. The desired key briefly appears, but at the next keystroke it disappears and is replaced by the symbol on the dead key.

Did you connect to an already running interpreter or start the interpreter from RIDE?

Launch Dyalog v17.0 "Beta 1" on a Danish Mac.

How do you reproduce the issue?

On a Danish Mac, type <^, see the ⍬, and then see it revert to ^ at the next keystroke.

Paste the contents of Help → About (Shift+F1)

IDE 4.1.3253, Interpreter 17.0.33034
abrudz commented 6 years ago

Does this happen even if the next keystroke is a space?

mkromberg commented 6 years ago

Yes - if the next keystroke is something that actually combines with the dead key then you get î or ü (etc).

e9gille commented 6 years ago

Just tested this on a UK WinOS with Danish keyboard layout in RIDE and Swedish keyboard input language in OS (so I'm not sure how much use this is) but prefix+dead key+space seems to work...

I know dead keys are handled differently on Mac. I'll see what I can do.

mkromberg commented 6 years ago

Yup, I can also confirm it works for me under Danish Windows.

e9gille commented 6 years ago

done some work on this. Dead keys are problematic, but with the latest changes you should be able to use them. To complete the sequence you can hit space, eg prefix+dead key+space or prefix+Shift+dead key+space

If you follow the dead key with something it can complete you end up with prefix followed by the completed character: prefix+diaresis+a => prefix+ä

This has been tested on mac and win, will need to check linux.

mkromberg commented 6 years ago

Will test it when I get a new Mac build. The behaviour that you describe seems to be "correct".

e9gille commented 6 years ago

@mkromberg can we close this one?

mkromberg commented 6 years ago

Works fine with Dyalog 17.0.33055 / IDE 4.1.3271 on Mortens Danish MacBook Air.