Method FindHotKey | Terminal.Gui v1 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
FindHotKey(ustring, Rune, bool, out int, out Key)
Finds the hotkey and its location in text.
public static bool FindHotKey(ustring text, Rune hotKeySpecifier, bool firstUpperCase, out int hotPos, out Key hotKey)
Parameters
text
ustring
The text to look in.
hotKeySpecifier
Rune
The hotkey specifier (e.g. '_') to look for.
firstUpperCase
bool
If true
the legacy behavior of identifying the first upper case character as the hotkey will be enabled. Regardless of the value of this parameter, hotKeySpecifier
takes precedence.
hotPos
int
Outputs the Rune index into text
.
hotKey
Key
Outputs the hotKey.
Returns
true
if a hotkey was found; false
otherwise.