This function is used to determine if a key pressed should cause the indenter to automatically indent.
The default implementation of this virtual method will check to see if keyval
is [[email protected]_Return] or [
[email protected]_KP_Enter] and state
does not have gdk_shift_mask set. This is to allow the
user to avoid indentation when Shift+Return is pressed. Other indenters may want to copy this behavior to provide a consistent experience
to users.
this |
a Indenter |
view |
a View |
location |
the location where |
state |
modifier state for the insertion |
keyval |
the keyval pressed such as [[email protected]_Return] |
true if indentation should be automatically triggered; otherwise false and no indentation will be performed. |