Fix alignment of ShortcutField regardless UI direction

This commit is contained in:
1024jp 2024-04-12 21:06:47 +09:00
parent 980258307a
commit 138d2472cd

View File

@ -38,6 +38,15 @@ final class ShortcutField: NSTextField, NSTextViewDelegate {
// MARK: Text Field Methods
override func awakeFromNib() {
super.awakeFromNib()
// fix the alignment to right regardless the UI layout direction
self.alignment = .right
}
/// Text field turns into edit mode.
override func becomeFirstResponder() -> Bool {