Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 17.0 (home page)Version 16.0 (home page, current version)Version 15.0 (home page)Version 14.0 (home page)Version 13.0 (home page)Version 12.0 (home page)Version 11.0 (home page)Version 10.0 (home page)Version 9.0 (home page)Version 8.0Version 7.0 (home page)Version 6.0 (home page)Version 5.0 (home page)Version 4.0 (home page)

Index

On this page

deadkey statement

deadkey(%name%)

dk(%name%)
      

The deadkey or dk statement lets you program a deadkey in your keyboard. The deadkey will be processed by Keyman as if it were a normal character, but it is not output onto the screen, but stored internally in the context. Any keyboard can have around 65,000 unique deadkeys.

Example
+ '`' > dk(backquote)
dk(backquote) + 'e' > 'è'
      

Any deadkeys inserted by another rule immediately before or after the character to the left of the insertion point will be deleted when backspace is pressed, unless backspace is overridden with a keyboard rule. This can be illustrated with the following implicit rule (* indicates 0 or more deadkeys; 'char' is any character):

dk()* any(char) dk()* + [K_BKSP] > nul
      
Versions

Numbered deadkeys were introduced in version 3.0. Keyman 5.0 and later support named deadkeys. The use of numbered deadkeys is still supported, but not recommended; named deadkeys make the keyboard source much more readable.

Related Topics