Merge pull request #661 from stonerl/number-fields

Advanced settings: make number fields .numPad
This commit is contained in:
Arkadiusz Fal 2024-05-16 18:19:59 +02:00 committed by GitHub
commit 3d8feda808
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,7 +73,7 @@ struct AdvancedSettings: View {
.frame(minWidth: 140, alignment: .leading) .frame(minWidth: 140, alignment: .leading)
TextField("cache-secs", text: $mpvCacheSecs) TextField("cache-secs", text: $mpvCacheSecs)
#if !os(macOS) #if !os(macOS)
.keyboardType(.URL) .keyboardType(.numberPad)
#endif #endif
} }
.multilineTextAlignment(.trailing) .multilineTextAlignment(.trailing)
@ -83,7 +83,7 @@ struct AdvancedSettings: View {
.frame(minWidth: 140, alignment: .leading) .frame(minWidth: 140, alignment: .leading)
TextField("cache-pause-wait", text: $mpvCachePauseWait) TextField("cache-pause-wait", text: $mpvCachePauseWait)
#if !os(macOS) #if !os(macOS)
.keyboardType(.URL) .keyboardType(.numberPad)
#endif #endif
} }
.multilineTextAlignment(.trailing) .multilineTextAlignment(.trailing)