mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
Updated ViewMouse unit tests
This commit is contained in:
@@ -104,7 +104,8 @@ public partial class View
|
||||
{
|
||||
if (!Enabled)
|
||||
{
|
||||
return true;
|
||||
// A disabled view should not eat mouse events
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!CanBeVisible (this))
|
||||
@@ -150,6 +151,7 @@ public partial class View
|
||||
{
|
||||
if (!Enabled)
|
||||
{
|
||||
// QUESTION: Is this right? Should a disabled view eat mouse clicks?
|
||||
args.Handled = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user