diff --git a/VoidLink/Localization/Localizable.xcstrings b/VoidLink/Localization/Localizable.xcstrings index 833648f0..dc04ab40 100644 --- a/VoidLink/Localization/Localizable.xcstrings +++ b/VoidLink/Localization/Localizable.xcstrings @@ -2971,7 +2971,7 @@ "en" : { "stringUnit" : { "state" : "translated", - "value" : "- Enable auto picture-in-picture by switching on Settings -> Multitasking & Gestures -> Start PiP Automatically.\n\n- PiP can be manually started in toolbox menu.\n\n- PiP connection timeout also defined by “Background Session” settings in “Others” section\n\n-PiP is available for iOS15+" + "value" : "- Enable auto picture-in-picture by switching on Settings -> Multitasking & Gestures -> Start PiP Automatically.\n\n- PiP can be manually started in toolbox menu.\n\n- PiP connection timeout is also defined by “Background Session” settings in “Others” section\n\n-PiP is available for iOS15+" } }, "zh-Hans" : { @@ -3892,6 +3892,38 @@ } } }, + "softKeyboardGestureStackDoc" : { + "extractionState" : "manual" + }, + "softKeyboardGestureStackTip" : { + "extractionState" : "manual", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "Soft keyboard gesture is able to locate the remote typing area by the lowest touch point of your tap gesture to lift the stream view to proper height.\nCheck the online document for details." + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "translated", + "value" : "软键盘手势能够根据位置最低的触点定位远程文字输入位置,并将串流视图提升到合适高度。\n详见在线文档。" + } + }, + "zh-Hant" : { + "stringUnit" : { + "state" : "translated", + "value" : "軟體鍵盤手勢可根據最低位置的觸控點,定位遠端文字輸入的位置,並將串流畫面提升至適當高度。\n詳情請參閱線上說明文件。" + } + }, + "zh-HK" : { + "stringUnit" : { + "state" : "translated", + "value" : "軟體鍵盤手勢可根據最低位置的觸控點,定位遠端文字輸入的位置,並將串流畫面提升至適當高度。\n詳情請參閱線上說明文件。" + } + } + } + }, "Stereo (surround sound available for iOS18+)" : { "extractionState" : "manual", "localizations" : { diff --git a/VoidLink/ViewControllers/SettingsViewController.m b/VoidLink/ViewControllers/SettingsViewController.m index 09495f77..de106087 100644 --- a/VoidLink/ViewControllers/SettingsViewController.m +++ b/VoidLink/ViewControllers/SettingsViewController.m @@ -978,11 +978,15 @@ BOOL isCustomResolution(CGSize res) { tipText = [LocalizationHelper localizedStringForKey:@"hdrStackTip"]; showOnlineDocAction = false; } - if([sender.superview.accessibilityIdentifier isEqualToString: @"pipStack"]){ tipText = [LocalizationHelper localizedStringForKey:@"pipStackTip"]; showOnlineDocAction = false; } + if([sender.superview.accessibilityIdentifier isEqualToString: @"softKeyboardGestureStack" ]){ + tipText = [LocalizationHelper localizedStringForKey:@"softKeyboardGestureStackTip"]; + showOnlineDocAction = true; + onlineDocLink = @"softKeyboardGestureStackDoc"; + } @@ -1526,7 +1530,7 @@ BOOL isCustomResolution(CGSize res) { [_softKeyboardGestureSelector setSelectedSegmentIndex:_softKeyboardGestureSelector.selectedSegmentIndex-1]; } for (NSInteger i = 0; i < _softKeyboardGestureSelector.numberOfSegments; i++) { - [_softKeyboardGestureSelector setEnabled:![self isCustomOswEnabled] ? true : i+3 != oswLayoutFingers forSegmentAtIndex:i]; // 或 NO 来禁用 + [_softKeyboardGestureSelector setEnabled:![self isCustomOswEnabled] || i == 3 ? true : i+3 != oswLayoutFingers forSegmentAtIndex:i]; // 或 NO 来禁用 } }