ModelBoiler icon indicating copy to clipboard operation
ModelBoiler copied to clipboard

Investigate keyboard shortcut issues

Open mariusc opened this issue 8 years ago • 0 comments

The § key isn't exactly the most common one, it's not present in the standard US keyboard layout. We could probably find another default key shortcut, one that can be more easily pressed.

In the meantime, I tried changing the default shortcut.

With my keyboard input source set on US (software), and the danish keyboard layout (hardware keyboard), the key to the left of 1 is §. In this case, everything is fine and it works as expected.

With my keyboard input source set on Danish (software), and the danish keyboard layout (hardware keyboard), the key to the left of 1 is $. In this case, the ModelBoiler menu (when clicking on the icon) shows the current keyboard shortcut as cmd + §. But if I go to settings, the shortcut is shown to be cmd+$. Pressing cmd+$ fails to generate the parsing code. image

With my keyboard input source set on Romanian-programmers - custom one I got form https://github.com/SaltwaterC/romanian-programmers-mac (software), and the danish keyboard layout (hardware keyboard), the key to the left of 1 is `. In this case, the ModelBoiler menu (when clicking on the icon) shows the current keyboard shortcut as cmd + §. But if I go to settings, the shortcut is shown to be cmd+. Pressing cmd+ fails to generate the parsing code. image

As I see it now, the problems are:

  • The shortcut displayed in the ModelBoiler isn't updated when the shortcut is changed from the settings.
  • The parsing code doesn't get generated with any custom shortcut. It only works with the default one, which isn't available on all keyboard layouts. (I tried setting it to some other key combinations, wasn't successful with any of them)

mariusc avatar Jan 19 '17 08:01 mariusc