keyActivates
open fun keyActivates(context: CompletionContext, proposal: CompletionProposal, keyval: <Error class: unknown class>, state: <Error class: unknown class>): Boolean
This function is used to determine if a key typed by the user should activate @proposal (resulting in committing the text to the editor).
This is useful when using languages where convention may lead to less typing by the user. One example may be the use of "." or "-" to expand a field access in the C programming language.
Parameters
context
a #GtkSourceCompletionContext
proposal
a #GtkSourceCompletionProposal
keyval
a keyval such as const@Gdk.KEY_period
state
a #GdkModifierType or 0