SPARK-2255 - middle click will now close an open mini ob
This commit is contained in:
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()}");
|
||||
|
||||
Reference in new issue
Block a user