mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-28 08:47:59 +01:00
Fixes #825. ReadOnly CheckBox.
This commit is contained in:
@@ -147,7 +147,7 @@ namespace Terminal.Gui {
|
||||
///<inheritdoc/>
|
||||
public override bool MouseEvent (MouseEvent me)
|
||||
{
|
||||
if (!me.Flags.HasFlag (MouseFlags.Button1Clicked))
|
||||
if (!me.Flags.HasFlag (MouseFlags.Button1Clicked) || !CanFocus)
|
||||
return false;
|
||||
|
||||
SuperView.SetFocus (this);
|
||||
|
||||
Reference in New Issue
Block a user