From 173952fe2f52104694fded352c7da8779ba33363 Mon Sep 17 00:00:00 2001 From: groverlynn Date: Sat, 10 Jun 2023 11:33:15 +0200 Subject: [PATCH 1/2] Fix reinterpret period key MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix a bug that odd ordinal positioned period key followed by alphabetic keys are all interpret as period. Such behavior is only expected on the 1st period key, but not on the 3rd, 5th, … period keys --- src/rime/gear/key_binder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rime/gear/key_binder.cc b/src/rime/gear/key_binder.cc index b5000fa53c..6a36c4166c 100644 --- a/src/rime/gear/key_binder.cc +++ b/src/rime/gear/key_binder.cc @@ -309,7 +309,7 @@ bool KeyBinder::ReinterpretPagingKey(const KeyEvent& key_event) { // reinterpret period key followed by alphabetic keys // unless period/comma key has been used multiple times if (ch == '.' && (last_key_ == '.' || last_key_ == ',')) { - last_key_ = 0; + last_key_ = ','; return ret; } if (last_key_ == '.' && ch >= 'a' && ch <= 'z') { From b8aaad78c8046a0dd6a2a8ebecc7e8b8eefaf067 Mon Sep 17 00:00:00 2001 From: groverlynn Date: Mon, 3 Jul 2023 12:35:09 +0200 Subject: [PATCH 2/2] Update xcode.mk --- xcode.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xcode.mk b/xcode.mk index 27d473ced3..c174b683a6 100644 --- a/xcode.mk +++ b/xcode.mk @@ -11,7 +11,7 @@ endif export SDKROOT ?= $(shell xcrun --sdk macosx --show-sdk-path) # https://cmake.org/cmake/help/latest/envvar/MACOSX_DEPLOYMENT_TARGET.html -export MACOSX_DEPLOYMENT_TARGET ?= $$(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET) +export MACOSX_DEPLOYMENT_TARGET ?= $(RECOMMENDED_MACOSX_DEPLOYMENT_TARGET) ifdef BUILD_UNIVERSAL # https://cmake.org/cmake/help/latest/envvar/CMAKE_OSX_ARCHITECTURES.html