JX Application Framework
Loading...
Searching...
No Matches
Public Attributes | List of all members
JXTMModifierConversion Struct Reference

Public Attributes

const JUtf8Bytestr
 
JSize strLength
 
JXModifierKey key
 

Detailed Description

Convert prepended "Ctrl-", "Shift-", "Meta-", "Alt-", "Super-", "Hyper-", and "Mod1-" through "Mod5-" into modifier flags. If the rest of the string is a single character, then we return this in key. We also translate the strings defined in kNMKeyConv because the actual characters can confuse the user. (e.g. Use "Ctrl-dash" instead of "Ctrl--") We also decode "F1" through "F35" to be the function keys that X provides.

"Shift-" is allowed only for alphabetic and control characters because of differences between keyboards.

If a modifier is not available, the shortcut is not installed.

Note that it is a bad idea to use "return" as a shortcut if the window contains a multi-line text editor. It is also a bad idea to use "backspace" and "delete" if the window contains a text input field. "Meta-tab" is not available, because JXWindow catches it.

Member Data Documentation

◆ key

JXModifierKey JXTMModifierConversion::key

◆ str

const JUtf8Byte* JXTMModifierConversion::str

◆ strLength

JSize JXTMModifierConversion::strLength

The documentation for this struct was generated from the following file: