Skip to content

Commit

Permalink
DirectStrategy.equal에서 doLengthsMatch 조건 삭제
Browse files Browse the repository at this point in the history
Safari 등 검색어 입력 중 Top Hit이 자동 완성 되면 한글 조합이 중단되는 문제 (#29)
  • Loading branch information
kiding committed Jan 2, 2025
1 parent f0bcce8 commit 04db37c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions SokIM/DirectStrategy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ struct DirectStrategy: Strategy {
let doPointersMatch = left.pointerValue == right.pointerValue

let doLocationsDiffByOne = abs(left.selectedRange.location - right.selectedRange.location) <= 1
let doLengthsMatch = left.selectedRange.length == right.selectedRange.length

// 별도 처리: 메시지 앱에서 여러 줄 입력 시 location 숫자가 급격하게 변함, 무시
let isMessagesAndNotSelected =
Expand All @@ -111,6 +110,5 @@ struct DirectStrategy: Strategy {
return doIdentifiersMatch
&& doPointersMatch
&& (doLocationsDiffByOne || isMessagesAndNotSelected)
&& doLengthsMatch
}
}

0 comments on commit 04db37c

Please sign in to comment.