示例#1
0
 // 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);
 }
示例#2
0
        public bool ToolkitKeyUp(ToolkitKeys key)
        {
            IToolkitEventSink co = this.mControlWeakRef.Target as IToolkitEventSink;

            if (null != co)
            {
                return(co.ToolkitKeyUp(key));
            }
            return(false);
        }
示例#3
0
 internal bool KeyUp(int wParam, int lParam)
 {
     //Console.WriteLine("DrawingWindow.KeyUp " + sink +", "+ (MapKeyToToolkitKeys( wParam)).ToString());
     return(sink.ToolkitKeyUp(MapKeyToToolkitKeys(wParam)));
 }