fincs / SciTE4AutoHotkey

SciTE distribution for AutoHotkey
https://www.autohotkey.com/scite4ahk/
337 stars 69 forks source link

Fix OnChar to avoid interfering with calltips #51

Closed Lexikos closed 1 year ago

Lexikos commented 1 year ago

The problem can be replicated by adding an API (even a fake one) with parameters and the following properties to enable calltips:

calltip.ahk1.ignorecase=1
calltip.ahk2.ignorecase=1
calltip.ahk2.parameters.start=(
calltip.ahk2.parameters.end=)
calltip.ahk2.parameters.separators=,
calltip.ahk2.word.characters=$(ahk2.word.characters).#

With the API Fubar(A), typing Fubar("A") would not close the tooltip, because OnChar was returning true.

This PR fixes it by skipping the autocomplete workarounds if the character being typed is one that would not trigger autocomplete, such ).