如何防止键入特殊字符(如“〜")?修改下一个键盘输入? [英] How to prevent the typing of special characters like "~" modifying the next keyboard input?

查看:85
本文介绍了如何防止键入特殊字符(如“〜")?修改下一个键盘输入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我键入"^"时,它会突出显示并等待下一个键盘输入,以便在可用时加一个下一个输入的重音.例如,键入"^",然后键入"a"将得到â"而不是"^ a".如何防止这种情况发生?

When I type in "^" it is highlighted and waits for the next keyboard input such that if available, the next input is accented with it. For example typing in "^" and then "a" would result in "â" instead of "^a". How do I prevent this from happening?

推荐答案

在这篇文章的帮助下,我可以通过创建自定义布局来解决此问题 https://superuser.com/questions/665494/如何在OS X中制作自定义键盘布局.

I was able to solve this by creating a custom layout with the help of this post https://superuser.com/questions/665494/how-to-make-a-custom-keyboard-layout-in-os-x.

选择要编辑的布局作为当前布局.

Chose my desired layout to be edited as the current layout.

这使键的输出成为字符,并且没有重音以下任何输入.对于所有其他突出显示的键(我认为它们称为死键")也是如此.

This makes the output of the key to the character and does not accent any following inputs. Did the same for all other highlighted keys ("Dead Keys" I think they are called).

  • 然后将键盘布局保存为捆绑文件的任何位置(请记住也要更改捆绑软件中键盘布局的名称.否则,它将与开始时的布局名称相同,并且在尝试选择键盘布局时可能会造成混淆)
  • 将已保存的捆绑软件移动到〜/Libraray/Keyboard Layouts/
  • 从系统偏好设置"的输入源"中选择新的布局
  • 成为一个快乐的程序员吧:)

这篇关于如何防止键入特殊字符(如“〜")?修改下一个键盘输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆