Fixes #4122 - Improves IPopover (#4124)

* upgraded to gitversion 6 2

* Remove invalid prevent-increment property

* upgraded to gitversion 6 3

* Fixed gitversion

* cleanup

* Added namespace docs

* Improved API docs.
Added runtime checks.
Refactored mouse check code.

* Refinements
This commit is contained in:
Tig
2025-06-04 10:30:29 -06:00
committed by GitHub
parent 764a804ddd
commit 4812d46e5f
10 changed files with 227 additions and 61 deletions

View File

@@ -144,10 +144,28 @@ public class ApplicationPopoverTests
public PopoverTestClass ()
{
ViewportSettings = ViewportSettingsFlags.Transparent | ViewportSettingsFlags.TransparentMouse;
CanFocus = true;
AddCommand (Command.New, NewCommandHandler!);
HotKeyBindings.Add (Key.N.WithCtrl, Command.New);
AddCommand (Command.Quit, Quit);
KeyBindings.Add (Application.QuitKey, Command.Quit);
return;
bool? Quit (ICommandContext? ctx)
{
if (!Visible)
{
return false;
}
Visible = false;
return true;
}
bool? NewCommandHandler (ICommandContext ctx)
{
NewCommandInvokeCount++;