如何在 RichTextBox 中输入半空格? [英] How can I type half-space in RichTextBox?
问题描述
当我按Shift + Space"在 RichTextBox 中输入半空格(当我用波斯语书写时)时,它只会插入空格.它可以正确键入所有其他波斯字符,但是当涉及到Shift+Space"时,它只键入空格.
When I press "Shift + Space" to type half-space (when I 'm writing in Persian) in a RichTextBox, it just inserts space. It types all other Persian characters correctly, but when it comes to "Shift+Space", it types just space.
这个字符的名字是ZERO WIDTH NON-JOINER",信息在这个链接中给出:http://www.fileformat.info/info/unicode/char/200c/index.htm.
The name of this character is "ZERO WIDTH NON-JOINER" and the information is given in this link: http://www.fileformat.info/info/unicode/char/200c/index.htm.
我应该提到我通过处理 previewKewDown 事件解决了这个问题;但我想知道 RichTextBox 中的这个组合键有什么问题.
I should mention that I fixed the problem by handling previewKewDown event; but I like to know what is the problem with this key combination in a RichTextBox.
谢谢.
推荐答案
我相信这个功能需要作为控件的一部分进行编程(RichTextBox 或某些继承的类),但似乎这不是案例.
I believe that this functionality would need to be programmed as a part of the control (either the RichTextBox or some inherited class), but it appears that this is not the case.
我在另一个网站上找到的另一种选择是按Alt + 0157
(使用启用了 NumLock 的键盘输入每个数字,一次一个),尽管这不如覆盖 previewKewDown
事件.
One alternative I found on another website was to press Alt + 0157
(use the keypad with NumLock enabled to enter each digit, one at a time), although this isn't as good as your solution of overriding the previewKewDown
event.
这篇关于如何在 RichTextBox 中输入半空格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!