mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
* 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:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user