Existe alguma maneira de alterar o mapeamento de chave do teclado da Apple?
Como programador eu acho chato Há uma vírgula em vez de um ponto no teclado numérico. Eu iria remapear esta chave para ter pontos ...
Existe alguma maneira de alterar o mapeamento de chave do teclado da Apple?
Como programador eu acho chato Há uma vírgula em vez de um ponto no teclado numérico. Eu iria remapear esta chave para ter pontos ...
Is there any way to change the key mapping of the apple keyboard?
As programmer I find annoying there's a comma instead a dot in numeric keypad. I would remap this key to have dot ...
A solução mais simples é criar o arquivo DefaultKeyBinding.dict em
/Users/[user]/Library/KeyBindings se ele ainda não existir, e adicionar o remapeamento:
{ "#," = ("insertText:", "."); } Então reinicie o Mac.
O ABCDEFGHIJKLMNABCDEFGHIJKLMN3 Indica que o remapeamento é apenas para o teclado. Mais referência para esse arquivo: https://gist.github.com/trusktr/1e5e516df4e8032cbc3d
.
The simplest solution is to create the file DefaultKeyBinding.dict
in /Users/[user]/Library/KeyBindings
if it does not already exist, and add the remapping:
{ "#," = ("insertText:", "."); }
Then restart the mac.
The #
indicates the remapping is for the keypad only. More reference for that file: https://gist.github.com/trusktr/1e5e516df4e8032cbc3d
Baseado na resposta Matías González:
Etapa 1, adicione o remapeamento (cole este comando no seu console):
mkdir ~/Library/KeyBindings && cd ~/Library/KeyBindings && touch DefaultKeyBinding.dict && echo '{"#," = ("insertText:", ".");}' > DefaultKeyBinding.dict Etapa 2, reinicie o Mac
O ABCDEFGHIJKLMNABCDEFGHIJKLMN5 Indica que o remapeamento é apenas para o teclado. Mais referência para esse arquivo: https://gist.github.com/trusktr/1e5e516df4e8032cbc3d < / p >.
based on Matxc3xadas Gonzxc3xa1lez answer:
Step 1, Add the remapping (paste this command on your console):
mkdir ~/Library/KeyBindings && cd ~/Library/KeyBindings && touch DefaultKeyBinding.dict && echo '{"#," = ("insertText:", ".");}' > DefaultKeyBinding.dict
Step 2, Restart the mac
The #
indicates the remapping is for the keypad only. More reference for that file: https://gist.github.com/trusktr/1e5e516df4e8032cbc3d
Uma solução é karabiner (antes da versão 9.3.0, Karabiner foi chamado KeyRemap4MacBook). Ele permite que você remape as chaves específicas ou altere o layout de teclado inteiro, como descrito aqui .
É um poderoso remaperador de teclado que pode alterar não apenas a funcionalidade das teclas e combinações de teclas, mas quase tudo relacionado a como uma chave se repete quando você segura. Remappas de teclado são altamente personalizáveis (embora não seja um processo tão simples). Você pode alterar praticamente qualquer coisa: você pode pesquisar todas as opções e encontrar rapidamente o que você está procurando, ou apenas navegar por categoria. É muito poderoso e o uso é bastante simples.
A desvantagem é que as funções de remapeamento de teclado são predefinidas e você pode simplesmente verificá-las. Se você quiser adicionar funções de remapeamento personalizadas, você deve editar um arquivo XML. Quando você está usando um aplicativo GUI, isso não é exatamente a experiência ideal. Dito isto, esta é a única desvantagem significativa.
One solution is Karabiner (prior to version 9.3.0, Karabiner was called KeyRemap4MacBook). It allows you to remap specific keys or change then entire keyboard layout, as described here.
It is a powerful keyboard remapper that can change not only the functionality of keys and key combinations, but just about everything related to how a key repeats when you hold it down. Keyboard remappings are highly customizable (although it's not a so simple process). You can change practically anything: you can search through all the options and quickly find what you're looking for, or just browse by category. It's very powerful and usage is pretty straightforward.
The drawback is that keyboard remapping functions are predefined and you can just check them off. If you want to add custom remapping functions, you have to edit an XML file. When you're using a GUI application this is not exactly the ideal experience. That said, this is the only significant drawback.
Isso funcionou muito bem no Catalina 10.15.7. Muito obrigado!
Para o reverso que Panostru está procurando por acredito que a sintaxe correta dentro de ~ / biblioteca / keybindings / defensekeybinding.dict deve ser:
{ "#." = ("insertText:", ","); } Como a vírgula depois de "inserttext" é um separador entre o comando e o caractere desejado.
This worked great on Catalina 10.15.7. Thanks a lot!
For the reverse that Panosru is looking for I believe that the correct syntax within ~/Library/KeyBindings/DefaultKeyBinding.dict should be:
{ "#." = ("insertText:", ","); }
As the comma after "insertText" is a separator between the command and the wanted character.
Se alguém ler isso em 2021 e usando o Mac OS X 10.13 (Hight Sierra) e querer alterar dot para
abcdefghijklmn8 no teclado numérico, tente as seguintes etapas:
hidutil property --set ' {"UserKeyMapping": [ { "HIDKeyboardModifierMappingSrc": 0x700000063, "HIDKeyboardModifierMappingDst": 0x700000036 }, ]}' - pressione enter;
- Aproveite!
/Users/[user]/Library/KeyBindings0 significa ponto char /Users/[user]/Library/KeyBindings1
/Users/[user]/Library/KeyBindings2 significa vírgula char /Users/[user]/Library/KeyBindings3
Referência: https://developer.apple.com/library /archive/technotes/tn2450/_index.html
If anyone reading this on 2021 and using Mac OS X 10.13 (Hight Sierra) and wanna change dot
to comma
on number keypad, try the following steps:
hidutil property --set ' {"UserKeyMapping": [ { "HIDKeyboardModifierMappingSrc": 0x700000063, "HIDKeyboardModifierMappingDst": 0x700000036 }, ]}'
0x700000063
means dot char .
0x700000036
means comma char ,
Reference: https://developer.apple.com/library/archive/technotes/tn2450/_index.html
© 2022 pergunte.org All Rights Reserved. Casa de perguntas e respostas todos os direitos reservados