Shortcut code cleanup

This commit is contained in:
Tig
2024-10-06 19:08:37 -06:00
parent 9a51d075a1
commit 9dd0be3147
2 changed files with 14 additions and 1 deletions

View File

@@ -298,6 +298,19 @@ public class Bar : View, IOrientation, IDesignable
Add (shortcut);
shortcut = new Shortcut
{
Text = "Czech",
CommandView = new CheckBox()
{
Title = "_Check"
},
Key = Key.F9,
CanFocus = false
};
Add (shortcut);
return true;
}
}

View File

@@ -94,7 +94,7 @@ public class Shortcut : View, IOrientation, IDesignable
{
Id = "_shortcut";
// Disabled for now due to bs in highlight handling and mouse clicks - HighlightStyle = HighlightStyle.Pressed;
HighlightStyle = HighlightStyle.None;
CanFocus = true;
Width = GetWidthDimAuto ();
Height = Dim.Auto (DimAutoStyle.Content, 1);