Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

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

Open
1 task done
s-shin opened this issue Jan 22, 2017 · 5 comments
Open
1 task done

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

s-shin opened this issue Jan 22, 2017 · 5 comments

Comments

@s-shin
Copy link

s-shin commented Jan 22, 2017

Prerequisites

Description

I created #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.

@nathansobo
Copy link
Contributor

cc @ungb

@ungb
Copy link

ungb commented Jan 30, 2017

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.

@s-shin
Copy link
Author

s-shin commented Jan 31, 2017

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

@ungb
Copy link

ungb commented Feb 6, 2017

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

@s-shin
Copy link
Author

s-shin commented Feb 7, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants