Relax IP address keyboard

Sub-optimal due to illegal characters. Improve later.

Fixes #103
This commit is contained in:
Davide De Rosa 2019-10-11 13:47:27 +02:00
parent aef0201b00
commit fc0d21a2ed
2 changed files with 6 additions and 2 deletions

View File

@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Upgrade project to Xcode 11.
### Fixed
- Cannot enter IP addresses in some localizations. [#103](https://github.com/passepartoutvpn/passepartout-ios/issues/103)
## 1.8.1 (2019-09-15)
### Added

View File

@ -340,7 +340,7 @@ extension NetworkSettingsViewController {
cell.field.placeholder = L10n.Core.Global.Values.none
cell.field.text = networkSettings.dnsServers?[i]
cell.field.clearButtonMode = .always
cell.field.keyboardType = .decimalPad
cell.field.keyboardType = .numbersAndPunctuation
cell.captionWidth = 160.0
cell.delegate = self
cell.field.isEnabled = (networkChoices.dns == .manual)
@ -359,7 +359,7 @@ extension NetworkSettingsViewController {
cell.field.placeholder = L10n.Core.Global.Values.none
cell.field.text = networkSettings.proxyAddress
cell.field.clearButtonMode = .always
cell.field.keyboardType = .decimalPad
cell.field.keyboardType = .numbersAndPunctuation
cell.captionWidth = 160.0
cell.delegate = self
cell.field.isEnabled = (networkChoices.proxy == .manual)