Bug report
Platform: macOS
Platform version: Sequoia 15.2
App Version: 5.9.2
Starting with version 5.9.2, when trying to type a backtick character ` with an Italian layout keyboard (key combo option-9), two backticks are printed with the last of them in ‘special mode’ to be used to add an accent to a vowel (ei. à).
How to reproduce
Press option-9.
craftzdog
(Takuya Matsuyama)
January 14, 2025, 5:30am
2
Hi Alessandro,
Thanks for the report.
I’m not familiar with “special mode”.
Could you show me what exactly happens with a video or gif?
Hello Takuya, I’m attaching a recording as requested.
(Sorry, in the video I wrote version 9.2.0 but I meant 5.9.2 )
craftzdog
(Takuya Matsuyama)
January 15, 2025, 7:13am
4
Thanks for the video!
I guess this is due to a new feature introduced in Inkdrop Desktop v5.9.1 .
The backtick key triggers the core:toggle-inline-code
command, and I found that it doesn’t prevent the default event handler.
Could you try this patch?
Thank you Takuya, unfortunately the problem is still present.
craftzdog
(Takuya Matsuyama)
January 16, 2025, 1:00am
6
It looks like the special mode can’t be suppressed from JS side. At the moment, I don’t know how to avoid this issue.
How about unbinding the core:toggle-inline-code
command in your keymap.json
?
".CodeMirror textarea": {
"`": "native!"
}
Hope it solves.
Thank you Takuya, that did work!
1 Like
craftzdog
(Takuya Matsuyama)
January 17, 2025, 12:47am
8
Great!
I guess I found how to fall back to the native behavior in the command event handler, so this keymap config won’t be necessary in the next version.
craftzdog
(Takuya Matsuyama)
January 21, 2025, 7:37am
9
should be fixed in v5.9.3 . The config hack is no longer needed.
Thanks again for reporting, @Alessandro_Baldoni !