From bb63d61b70aab0d4283c7f0044d0413d230a3427 Mon Sep 17 00:00:00 2001 From: Dan Walmsley Date: Sun, 29 Jan 2017 12:50:55 +0000 Subject: [PATCH] added connect before attribute, to receive all events. --- src/Gtk/Avalonia.Gtk/WindowImplBase.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Gtk/Avalonia.Gtk/WindowImplBase.cs b/src/Gtk/Avalonia.Gtk/WindowImplBase.cs index c8f74b2d39..db4b5e9dde 100644 --- a/src/Gtk/Avalonia.Gtk/WindowImplBase.cs +++ b/src/Gtk/Avalonia.Gtk/WindowImplBase.cs @@ -9,6 +9,7 @@ using Avalonia.Platform; using Gdk; using Action = System.Action; using WindowEdge = Avalonia.Controls.WindowEdge; +using GLib; namespace Avalonia.Gtk { @@ -49,6 +50,7 @@ namespace Avalonia.Gtk _window.KeyReleaseEvent += OnKeyReleaseEvent; _window.ExposeEvent += OnExposeEvent; _window.MotionNotifyEvent += OnMotionNotifyEvent; + } @@ -269,6 +271,7 @@ namespace Avalonia.Gtk Input(e); } + [ConnectBefore] void OnKeyPressEvent(object o, Gtk.KeyPressEventArgs args) { args.RetVal = true;