Using Medium shortcuts with german keyboard layout on a Mac with Chrome

Sven Winkler
<pretty/code>
Published in
1 min readJul 15, 2016

While writing posts on Medium it bugged me that I couldn’t highlight code via keyboard shortcuts nor could I quote text, because on a german keyboard layout ⌘⌥5 and ⌘⌥6 are already taken.

Deactivating/rebinding these shortcuts via system preferences did not help, as they were not published to the browser anymore.

In my day-to-day work I rely heavily on Karabiner for remapping keys. It was only natural to search for a solution there. With the help of EventViewer and switching between different keyboard layouts the solution was obvious.

Copy the following XML snippet to your Karabiner private.xml and activate this new setting afterwards.

add this to your private.xml

Please be aware that this solution only applies to Chrome as Safari is still eating the keycodes. Furthermore you loose the ability to go back and forward via ⌘[ and ⌘].

--

--

Sven Winkler
<pretty/code>

Ruby, Rails, CoffeeScript & Vim » breaking things with passion since 1983