CompletionProvider.keyActivates

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 gtksource.completion_context.CompletionContext

a #GtkSourceCompletionContext

proposal gtksource.completion_proposal.CompletionProposal

a #GtkSourceCompletionProposal

keyval uint

a keyval such as gdk.types.KEY_period

state gdk.types.ModifierType

a #GdkModifierType or 0

Return Value

Type: bool