Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I type half-space in RichTextBox?

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.

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.

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.

thanks.

like image 965
Ramin Avatar asked Nov 03 '22 12:11

Ramin


1 Answers

I think the problem is simply with your keyboard layout in windows. Windows' keyboard layout for Persian simply does not support ZWNJ. If you use Iranian Standard Persian Keyboard (ISIRI 9147) (Version 2.0) from Persian Computing Community Site, it will be available.

like image 157
Majid Einian Avatar answered Nov 14 '22 03:11

Majid Einian