Replies: 1 comment
-
I believe on a Swedish keyboard you must press Therefore I would try to bind |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Note
Cross posting my post at Ask Different
I have a Swedish keyboard (with such a layout). Now there are many default keyboard shortcuts in macOS and apps that aren't possible on a Swedish layout because the second key press requires modifier keys, for example,
command + [
. Here, the open square bracket[
, for example, is a character that on a Swedish keyboard require theoption
key to access and therefore it's not possible to use the shortcutcommand + [
. This problem exists for other symbols as well.So instead of remapping all predefined shortcuts (and because I sometimes switch to a US keyboard on Windows), I'd like to define specific keys that maps to (in this case
[
), so that I can use that key in combination with other keys to trigger the default shortcuts (in this casecommand + [
). For example, mappingright_command
to[
to be able to combinecommand + right_command
to trigger thecommand + [
shortcut.Using Karabiner-Elements, first thing to try is mapping a key to directly to the key code
open_bracket
:This doesn't work as it just maps to that position on the Swedish keyboard, which is å.
If I simulate the key combination that results in a
[
, which isopt + 8
, it does work:However, using this to trigger a shortcut like the one mentioned above doesn't work. This is probably because two key presses are simulated. Karabiner-EventViewer outputs the following when pressing
right_command
:And with the modifer key to trigger
command + [
:Perhaps this is why the keyboard combination does not work, as the second key press would would cancel it.
So my question is
[Using the open bracket example] I wish to be able to map a key to
[
(which otherwise would require a modify key) and then also be able to use it in keyboard shortcuts such ascmd + [
.Is there a way to remap a key to output [ and still use it in combination with modifiers for shortcuts, without triggering issues from simulated multiple key presses?
Beta Was this translation helpful? Give feedback.
All reactions