Skip to content

Commit

Permalink
fix: composing key label not display and reset as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
if-can committed Jan 17, 2025
1 parent b14a5ac commit fda4915
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,6 @@ class KeyboardView(
if (mOldPointerCount > 1 || mComboMode) KeyBehavior.COMBO else KeyBehavior.CLICK,
)
}
invalidateAllKeys()
mRepeatKeyIndex = NOT_A_KEY
return false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import androidx.core.content.ContextCompat
import com.osfans.trime.R
import com.osfans.trime.core.Rime
import com.osfans.trime.core.RimeMessage
import com.osfans.trime.core.RimeProto
import com.osfans.trime.core.SchemaItem
import com.osfans.trime.daemon.RimeSession
import com.osfans.trime.data.prefs.AppPrefs
Expand Down Expand Up @@ -291,6 +292,10 @@ class KeyboardWindow(
currentKeyboardView?.invalidateAllKeys()
}

override fun onInputContextUpdate(ctx: RimeProto.Context) {
currentKeyboardView?.invalidateAllKeys()
}

override fun onEnterKeyLabelUpdate(label: String) {
currentKeyboardView?.onEnterKeyLabelUpdate(label)
}
Expand Down

0 comments on commit fda4915

Please sign in to comment.