aboutsummaryrefslogtreecommitdiff
path: root/src/git:/git.josher.dev
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2025-10-26 05:26:27 +0000
committerGitHub <noreply@github.com>2025-10-26 05:26:27 +0000
commit1399545f48f3a7ec558377a7b935b9a94482d22b (patch)
tree6f79c0660510fa07043ef35dad8e3fc6ef9daed0 /src/git:/git.josher.dev
parent52deae45bc2891f26070684fe3fda94c26dd37c1 (diff)
downloadr-alacritty-1399545f48f3a7ec558377a7b935b9a94482d22b.tar.gz
r-alacritty-1399545f48f3a7ec558377a7b935b9a94482d22b.tar.bz2
r-alacritty-1399545f48f3a7ec558377a7b935b9a94482d22b.zip
Ignore touch gestures for enabling IME
Previously whenever the user would use touch gestures to make selections or scroll the terminal, IME would automatically be enabled due to the focus change and reduce the terminal height. This isn't ideal when the goal is just scanning through the terminal history without making any input. This patch keeps track of pointer and touch focus and only enables IME when either the pointer is within the window or a tap touch sequence was performed to give the window 'touch focus'. The initial touch tap sequence used to enable IME is still forwarded to the terminal as a simulated click event, since otherwise touch devices without virtual keyboard would be forced into a confusing additional tap to make it work. This means that virtual keyboard users will not be able to open the virtual keyboard without creating a click event, which should still be preferable to the status quo.
Diffstat (limited to 'src/git:/git.josher.dev')
0 files changed, 0 insertions, 0 deletions