• Skip to main content
  • Skip to primary sidebar

Web Development Archive

  • Archive
You are here: Home / Other / Custom keyboard shortcuts for MacOS

Custom keyboard shortcuts for MacOS

Ez egy nagyon gyakori probléma a magyar Mac-billentyűzeten — mivel a {}, [], +, ~, | stb. karakterek szinte el vannak rejtve a magyar kiosztásban, és sok fejlesztő emiatt váltogat angolra, ami hosszú távon idegesítő.

Megoldás 1: Karabiner-Elements (ajánlott fejlesztőknek)

⌥ + 1 → & 
⌥ + 3 → #
⌥ + l → /
⌥ + é → [
⌥ + á → ]
⌥ + ű → |
⌥ + ó → +
⌥ + ü → -
⌥ + 8 → *
⌥ + - → `
⌥ + , → <
⌥ + . → >

Ez a legmegbízhatóbb és legflexibilisebb módszer, natív szinten működik minden appban (VS Code, Terminal, Chrome, stb.).

1. Telepítés

https://karabiner-elements.pqrs.org/
Töltsd le és engedélyezd a Security & Privacy-ben (System Preferences → Privacy & Security → Input Monitoring + Accessibility).


2. Saját szabály létrehozása

Menj ide:
~/.config/karabiner/assets/complex_modifications/hungarian-dev-layout.json

Ha nincs ilyen fájl, hozd létre.

Tartalom például:

{
"title": "Hungarian Developer Layout (force English output, ISO MacBook, full extended)",
"rules": [
{
"description": "⌥ + őúéáűóüí- → {}[]|+-\\` on Hungarian ISO keyboard",
"manipulators": [
{
"type": "basic",
"from": { "key_code": "open_bracket", "modifiers": { "mandatory": ["option"], "optional": ["any"] } },
"to": [ { "shell_command": "osascript -e 'tell application \"System Events\" to keystroke \"{\"'" } ]
},
{
"type": "basic",
"from": { "key_code": "close_bracket", "modifiers": { "mandatory": ["option"], "optional": ["any"] } },
"to": [ { "shell_command": "osascript -e 'tell application \"System Events\" to keystroke \"}\"'" } ]
},
{
"type": "basic",
"from": { "key_code": "semicolon", "modifiers": { "mandatory": ["option"], "optional": ["any"] } },
"to": [ { "shell_command": "osascript -e 'tell application \"System Events\" to keystroke \"[\"'" } ]
},
{
"type": "basic",
"from": { "key_code": "quote", "modifiers": { "mandatory": ["option"], "optional": ["any"] } },
"to": [ { "shell_command": "osascript -e 'tell application \"System Events\" to keystroke \"]\"'" } ]
},
{
"type": "basic",
"from": { "key_code": "backslash", "modifiers": { "mandatory": ["option"], "optional": ["any"] } },
"to": [ { "shell_command": "osascript -e 'tell application \"System Events\" to keystroke \"|\"'" } ]
},
{
"type": "basic",
"from": { "key_code": "equal_sign", "modifiers": { "mandatory": ["option"], "optional": ["any"] } },
"to": [ { "shell_command": "osascript -e 'tell application \"System Events\" to keystroke \"+\"'" } ]
},
{
"type": "basic",
"from": { "key_code": "hyphen", "modifiers": { "mandatory": ["option"], "optional": ["any"] } },
"to": [ { "shell_command": "osascript -e 'tell application \"System Events\" to keystroke \"-\"'" } ]
},
{
"type": "basic",
"from": { "key_code": "i", "modifiers": { "mandatory": ["option"], "optional": ["any"] } },
"to": [ { "shell_command": "osascript -e 'tell application \"System Events\" to keystroke \"\\\\\"'" } ]
},
{
"type": "basic",
"from": { "key_code": "slash", "modifiers": { "mandatory": ["option"], "optional": ["any"] } },
"to": [ { "shell_command": "osascript -e 'tell application \"System Events\" to keystroke \"`\"'" } ]
},
{
"type": "basic",
"from": { "key_code": "comma", "modifiers": { "mandatory": ["option"], "optional": ["any"] } },
"to": [ { "shell_command": "osascript -e 'tell application \"System Events\" to keystroke \"<\"'" } ]
},
{
"type": "basic",
"from": { "key_code": "period", "modifiers": { "mandatory": ["option"], "optional": ["any"] } },
"to": [ { "shell_command": "osascript -e 'tell application \"System Events\" to keystroke \">\"'" } ]
},
{
"type": "basic",
"from": { "key_code": "3", "modifiers": { "mandatory": ["option"], "optional": ["any"] } },
"to": [ { "shell_command": "osascript -e 'tell application \"System Events\" to keystroke \"#\"'" } ]
},
{
"type": "basic",
"from": { "key_code": "l", "modifiers": { "mandatory": ["option"], "optional": ["any"] } },
"to": [ { "shell_command": "osascript -e 'tell application \"System Events\" to keystroke \"/\"'" } ]
},
{
"type": "basic",
"from": { "key_code": "8", "modifiers": { "mandatory": ["option"], "optional": ["any"] } },
"to": [ { "shell_command": "osascript -e 'tell application \"System Events\" to keystroke \"*\"'" } ]
}
]
}
]
}

Filed Under: Other

About Gabor Flamich

I'm a web developer and designer based in Budapest, Hungary. In recent years, I've documented hundreds of solutions I came across during development. This site is an archive for useful code snippets on WordPress, Genesis Framework and WooCommerce. If You have any questions related to WordPress development, get in touch!

Primary Sidebar

  • angular.io
© 2026 WP Flames - All Right Reserved