public keyset(keytype press, char c) { this.c = c; this.press = press; var helper = new Helper { Value = VkKeyScan(c) }; Key = (KeyboardKey)helper.Low; }
private bool isMatch(keyset k, InputEventArgs e, keytype keytype) { //if ((keytype == keytype.down && (k.press == keytype.down || k.press == keytype.press)) || keytype == k.press) if (keytype == k.press) { if (k.Key > 0) { if (k.Key == e.Key) { return(true); } } else { if (k.c == (char)e.KeyValue) { return(true); } } } return(false); }
public keyset(keytype press, KeyboardKey Key) { this.Key = Key; this.press = press; }