mirror of
https://github.com/coteditor/CotEditor.git
synced 2024-09-20 15:47:57 +03:00
Fix alignment of ShortcutField regardless UI direction
This commit is contained in:
parent
980258307a
commit
138d2472cd
@ -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 {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user