atom-keymap icon indicating copy to clipboard operation
atom-keymap copied to clipboard

Cmd+backslash isn't working yet in JIS keyboard on Mac.

Open s-shin opened this issue 7 years ago • 5 comments

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

  1. Open atom with atom --safe ..
  2. Input Cmd-\.
    • ¥ is swapped to \ by Google Japanese Input (see the image).

fig1

FYI: ¥キーで入力する文字 means Which character to be input by '¥' key.

Expected behavior: Toggle tree-view.

Actual behavior: No effect. Key Binding Resolver shows Cmd-¥.

image

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'

image

IME layer is ignored?

¥ key seems to be always resolved ¥ character regardless of the setting of IME above.

s-shin avatar Jan 22 '17 04:01 s-shin

cc @ungb

nathansobo avatar Jan 30 '17 19:01 nathansobo

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: image

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 avatar Jan 30 '17 21:01 ungb

@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.

input_yen

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 avatar Jan 31 '17 13:01 s-shin

@s-shin What kind of keyboard/ keyboard layout are you using?

ungb avatar Feb 06 '17 20:02 ungb

@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.

s-shin avatar Feb 07 '17 01:02 s-shin