Skip to content

Commit

Permalink
don't fix cursor at the beginning on macOS (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj authored Apr 2, 2024
1 parent 395500a commit 7e9f570
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rimeengine.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,13 @@ FCITX_CONFIGURATION(
isAndroid() ? PreeditMode::No : PreeditMode::ComposingText};
Option<SharedStatePolicy> sharedStatePolicy{
this, "InputState", _("Shared Input State"), SharedStatePolicy::All};
// On Linux only cursor position is available so this pins candidate window
// while typing. On macOS any position within embedded preedit is available
// so this is unnecessary. On Android there is no candidate window yet.
Option<bool> preeditCursorPositionAtBeginning{
this, "PreeditCursorPositionAtBeginning",
_("Fix embedded preedit cursor at the beginning of the preedit"),
!isAndroid()};
!isAndroid() && !isApple()};
Option<bool> commitWhenDeactivate{
this, "Commit when deactivate",
_("Commit current text when deactivating"), true};
Expand Down

0 comments on commit 7e9f570

Please sign in to comment.