diff --git a/Terminal.Gui/Views/Shortcut.cs b/Terminal.Gui/Views/Shortcut.cs index 4b38a50dd..78250cf15 100644 --- a/Terminal.Gui/Views/Shortcut.cs +++ b/Terminal.Gui/Views/Shortcut.cs @@ -19,11 +19,13 @@ namespace Terminal.Gui; /// be invoked regardless of what View has focus, enabling an application-wide keyboard shortcut. /// /// -/// By default, a Shortcut displays the command text on the left side, the help text in the middle, and the key binding on the +/// By default, a Shortcut displays the command text on the left side, the help text in the middle, and the key +/// binding on the /// right side. Set to to reverse the order. /// /// -/// The command text can be set by setting the 's Text property or by setting . +/// The command text can be set by setting the 's Text property or by setting +/// . /// /// /// The help text can be set by setting the property or by setting . @@ -141,7 +143,12 @@ public class Shortcut : View /// the Shortcut will be configured for vertical layout, which is ideal for menus. /// /// - /// When Horizontal, Key is first, then Help, then Command. When Vertical, Command is first, then Help, then Key. + /// + /// When Horizontal, Key is first, then Help, then Command. When Vertical, Command is first, then Help, then Key. + /// + /// + /// Set to override the default layout. + /// /// public Orientation Orientation { @@ -164,9 +171,13 @@ public class Shortcut : View private AlignmentModes _alignmentModes = AlignmentModes.StartToEnd | AlignmentModes.IgnoreFirstOrLast; /// - /// Gets or sets the for this . The default is - /// . + /// Gets or sets the for this . /// + /// + /// + /// Setting will set the to the appropriate value. + /// + /// public AlignmentModes AlignmentModes { get => _alignmentModes; diff --git a/Terminal.Gui/Views/StatusBar.cs b/Terminal.Gui/Views/StatusBar.cs index 69cb264a6..0a6f19c4a 100644 --- a/Terminal.Gui/Views/StatusBar.cs +++ b/Terminal.Gui/Views/StatusBar.cs @@ -50,8 +50,7 @@ public class StatusBar : Bar if (barItem is Shortcut shortcut) { - shortcut.AlignmentModes = AlignmentModes.EndToStart | AlignmentModes.IgnoreFirstOrLast; - + shortcut.Orientation = Orientation.Horizontal; } } }