atom-r-exec icon indicating copy to clipboard operation
atom-r-exec copied to clipboard

Using the Alt+letter key for bindings breaks Mac keyboards

Open teoric opened this issue 8 years ago • 2 comments

I would be grateful if you could consider removing bindings with Alt+Letter from the package's Mac key bindings.

Using the alt-modifier alone without any other modifier (Cmd, Ctrl) – shift does not count! – shadows additional symbols available on the keyboard. E.g., on a German or even US keyboard, I now cannot type the en-dash (Alt+Minus) anymore due to the r-exec keybinding, which is also active in Markdown mode, where it is quite useless. I would be grateful if the default configuration would not break keyboard behaviour; such grave changes should be opt-in in my opinion.

teoric avatar Apr 26 '17 09:04 teoric

hm. I didn't realize it breaks international keyboards. these defaults were modeled after other software that uses similar key bindings (alt-- is used as a default in RStudio).

any suggestions on alternative bindings?

thanks

pimentel avatar Apr 27 '17 15:04 pimentel

Thank you for considering this issue! (By the way, as I wrote It does not only break international keyboards, but also the Mac US keyboard, which also has the en-dash at Alt-Dash). Options I see right now:

  • make the shortcut opt-in (typing <- does not really need a shortcut anyway, in my opinion),
  • restrict the shortcut to R code (that would limit the damage),
  • use another default shortcut, e.g. Ctrl-Dash, Ctrl-Shift-Dash, Ctrl-Alt-Dash?

teoric avatar Apr 27 '17 17:04 teoric