mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-29 09:18:01 +01:00
Shortcut code cleanup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user