From fc0d21a2ed1afe399874a0f3270025367b0abc1d Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Fri, 11 Oct 2019 13:47:27 +0200 Subject: [PATCH] Relax IP address keyboard Sub-optimal due to illegal characters. Improve later. Fixes #103 --- CHANGELOG.md | 4 ++++ Passepartout-iOS/Scenes/NetworkSettingsViewController.swift | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 45dde925..0b48b551 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Passepartout-iOS/Scenes/NetworkSettingsViewController.swift b/Passepartout-iOS/Scenes/NetworkSettingsViewController.swift index a16e91b6..2176999c 100644 --- a/Passepartout-iOS/Scenes/NetworkSettingsViewController.swift +++ b/Passepartout-iOS/Scenes/NetworkSettingsViewController.swift @@ -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)