SPARK-2255 - middle click will now close an open mini ob

This commit is contained in:
Jake Norbut committed 2019-04-10 15:16:26 -05:00
1 parent 9f6a894ddf
commit 33804a8cb2
1 file changed
+5
@@ -157,6 +157,11 @@ namespace mbts.spark {
nameof(OrderBookVM.is_row_collection_populated)
);
popup.Closed += (sender, event_args) => (popup.DataContext as IDisposable)?.Dispose();
popup.MouseUp += (sender, event_args) => {
if (event_args.ChangedButton == MouseButton.Middle) {
popup.IsOpen = false;
}
};
// This is useful for troubleshooting focus issues
//popup.LostKeyboardFocus += (ss, ee) => {
// System.Diagnostics.Debug.WriteLine($"Lost Focus Event - Current Focus: {mbts.utils.MiscUtils.who_has_keyboard_focus()}");