Posted 19 years ago
by BTAC Developer
I'm trying to use KeyTyping to capture when the user hits the K key while holding the Ctrl key ..how can this be done? I've experimented with the CommandLinks and it doesn't do anything...
editor.CommandLinks.Add(new CommandLink(new YourCommand(), new KeyBinding(WinUICore.Input.ModifierKeys.Control, Keys.K)));
editor.CommandLinks.Add(new ActiproSoftware.WinUICore.Commands.CommandLink(new MoveDownCommand(),
new ActiproSoftware.WinUICore.Commands.KeyBinding(ActiproSoftware.WinUICore.Input.ModifierKeys.Control, Keys.K)));
if (e.KeyData == (Keys.Control | Keys.K)) {
// Do something
}
Please log in to a validated account to post comments.