internal static int EnterKeyToInt(VirtualKeyboardEnter enter) { if (enter == VirtualKeyboardEnter.Replace && !Util.IsCapableOfRunning(10, 2)) { throw new NotSupportedException("The keyboard enter key, Replace, is not supported on this OS. Requires OS 10.2 or higher"); } return((int)enter); }
public static void SetOptions(VirtualKeyboardLayout layout, VirtualKeyboardEnter enter, bool noHelp = true) { if (Util.IsCapableOfRunning(10, 3)) { virtualkeyboard_change_options_v2(LayoutToInt(layout), EnterKeyToInt(enter), noHelp); } else { virtualkeyboard_change_options(LayoutToInt(layout), EnterKeyToInt(enter)); } }
internal static int EnterKeyToInt(VirtualKeyboardEnter enter) { if (enter == VirtualKeyboardEnter.Replace && !Util.IsCapableOfRunning(10, 2)) { throw new NotSupportedException("The keyboard enter key, Replace, is not supported on this OS. Requires OS 10.2 or higher"); } return (int)enter; }
public static void SetOptions(VirtualKeyboardLayout layout, VirtualKeyboardEnter enter, bool noHelp = true) { if (Util.IsCapableOfRunning(10, 3)) { virtualkeyboard_change_options_v2(LayoutToInt(layout), EnterKeyToInt(enter), noHelp); } else { virtualkeyboard_change_options(LayoutToInt(layout), EnterKeyToInt(enter)); } }