Skip to content

Commit

Permalink
Mac: Allow FloatingForm to get focus by default
Browse files Browse the repository at this point in the history
  • Loading branch information
cwensley committed May 13, 2022
1 parent 5b8614e commit b8aa0ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Eto.Mac/Forms/FloatingFormHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ protected override NSPanel CreateControl()
var panel = new EtoPanel(new CGRect(0, 0, 200, 200),
NSWindowStyle.Resizable | NSWindowStyle.Closable | NSWindowStyle.Titled,
NSBackingStore.Buffered, false);
panel.CanFocus = true;

panel.FloatingPanel = true;
panel.BecomesKeyOnlyIfNeeded = true;
Expand Down

0 comments on commit b8aa0ce

Please sign in to comment.