// Override the key release event from Xsharp. protected override bool OnKeyRelease(KeyName key, ModifierMask modifiers) { if (sink != null) { // Emit the "KeyUp" event. ToolkitKeys keyData = DrawingWindow.MapKey(key, modifiers); return(sink.ToolkitKeyUp(keyData)); } return(false); }
public bool ToolkitKeyUp(ToolkitKeys key) { IToolkitEventSink co = this.mControlWeakRef.Target as IToolkitEventSink; if (null != co) { return(co.ToolkitKeyUp(key)); } return(false); }
internal bool KeyUp(int wParam, int lParam) { //Console.WriteLine("DrawingWindow.KeyUp " + sink +", "+ (MapKeyToToolkitKeys( wParam)).ToString()); return(sink.ToolkitKeyUp(MapKeyToToolkitKeys(wParam))); }