atom-keymap
atom-keymap copied to clipboard
Cmd+backslash isn't working yet in JIS keyboard on Mac.
Prerequisites
- [x] Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
I created https://github.com/atom/atom-keymap/issues/165 previously, but Cmd+\
has not been able to toggle tree-view yet.
Steps to Reproduce
- Open atom with
atom --safe .
. - Input
Cmd-\
.-
¥
is swapped to\
by Google Japanese Input (see the image).
-
FYI: ¥キーで入力する文字
means Which character to be input by '¥' key
.
Expected behavior: Toggle tree-view.
Actual behavior: No effect. Key Binding Resolver shows Cmd-¥
.
Reproduces how often: Always.
Versions
- MacBook Pro (Late 2013)
- JIS keyboard.
- macOS Sierra 10.12.1
$ atom --version
Atom : 1.13.0
Electron: 1.3.13
Chrome : 52.0.2743.82
Node : 6.5.0
$ apm --version
apm 1.14.1
npm 3.10.5
node 4.4.5
python 2.7
git 2.10.1
Additional Information
Work Around
To wok around this issue, we can add the following in keymap.cson.
'.platform-darwin':
'cmd-¥': 'tree-view:toggle'
IME layer is ignored?
¥
key seems to be always resolved ¥
character regardless of the setting of IME above.
cc @ungb
Hi @s-shin,
I am unable to repro on mac 10.12.2.
atom -version Atom : 1.13.1 Electron: 1.3.13 Chrome : 52.0.2743.82 Node : 6.5.0
apm --version apm 1.14.1 npm 3.10.5 node 4.4.5 python 2.7.10 git 2.10.1
screenshot:
Looking at the release notes, nothing changed from 1.13.0 -> 1.13.1 in this area.
I've also tried changing my system default language to japanese, but it was working for me.
@ungb Thank you for trying to repro!
I'm wondering if your keyboard layout is US. If so, this issue might not be reproduced.
I can also give you one more screenshot below.
When I pressed ¥
key, the keydown event by document.addEventListener('keydown', e => console.log(e), true);
says key: "¥"
in console, but \
is inputted in the editor area.
@s-shin What kind of keyboard/ keyboard layout are you using?
@ungb I'm using japanese keyboard.
You can see the layout in http://www.apple.com/shop/product/MLA22LL/A/magic-keyboard-us-english by selecting "Japanese" in "Language" options.