summaryrefslogtreecommitdiff
path: root/gtk/gtkeventcontrollerkey.c
Commit message (Collapse)AuthorAgeFilesLines
* imwayland: Connect gtk_im_context_focus_in/out to GtkEventControllerKeyTakao Fujiwara2020-01-281-0/+7
| | | | | | | GtkEventControllerKey can handle GDK_FOCUS_CHANGE and call gtk_im_context_focus_in/out directly. https://gitlab.gnome.org/GNOME/gtk/issues/2390
* eventcontrollerkey: Change behavior of contains-focusBenjamin Otte2019-10-071-5/+6
| | | | | | contains-focus now returns TRUE when is-focus is TRUE instead of FALSE. Fixes #2184
* eventcontrollerkey: Add getters for the propertiesBenjamin Otte2019-10-071-0/+32
| | | | ...and use them.
* gtk: fix all uses of g_cclosure_marshal_genericChristian Hergert2019-06-021-4/+17
| | | | | | | | | | | | | | This adds specific marshallers for all of the locations where a generic marshaller is being used. It also provides va_marshallers to reduce the chances that we get stack traces from perf going through ffi_call_unix64. This is forward ported from gtk-3-24. # Conflicts: # gtk/gtkeventcontrollerkey.c # gtk/gtkeventcontrollermotion.c # gtk/gtkgesture.c # gtk/gtkgesturemultipress.c
* key controller: Don't eat modifier eventsMatthias Clasen2019-05-131-15/+8
| | | | | | | | | | The key controller was consuming key events for modifier keys, for no entirely convincing reason, which leads to problems when somebody actually listens for those, such as the simple input method does for C-S-u processing. Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1884
* Trigger bindings when forwarding key eventsMatthias Clasen2019-03-311-0/+3
| | | | | | | This broke backspace handling in entries when an entry completion is present. Closes: https://gitlab.gnome.org/GNOME/gtk/issues/1793
* key controller: Enforce limitations of key forwardingMatthias Clasen2019-03-161-0/+2
| | | | | We now set current_event for focus-change as well, so make sure to check the event type.
* key controller: Improve the docsMatthias Clasen2019-03-161-0/+7
| | | | Mention the limitations of the key forwarding api.
* key controller: Add getters for focus event targetsMatthias Clasen2019-03-161-0/+66
| | | | | This information can be needed in signal handlers, so make it available.
* key controller: Add focus propertiesMatthias Clasen2019-03-161-5/+126
| | | | | | Add boolean properties, is-focus and contains-focus, that track whether the focus is in the widget itself or in one of its descendants.
* key controller: Fix a copy/paste errorMatthias Clasen2019-03-161-2/+2
| | | | Prefix the finalize function properly.
* Pass mode and detail to focus-in/out signalsMatthias Clasen2019-03-161-9/+23
| | | | | | | This information is useful when maintaining a 'last focus' field. Update all users.
* eventcontrollerkey: Use run_controllers() API to forward key eventsCarlos Garnacho2019-02-201-2/+8
| | | | All 3 phases are run ATM, but just on the specific widget.
* EventControllerKey: Add missing documentation bitsDaniel Boles2018-12-141-2/+72
|
* eventcontrollerkey: Document key-pressed and key-releasedErnestas Kulik2018-07-021-0/+20
| | | | | None of the GtkEventControllerKey signals are documented; this commit adds documentation for a couple of them.
* docs: Document GtkEventControllerKeyMatthias Clasen2018-06-261-0/+10
| | | | The long description was missing.
* Remove a lot of Since annotationsMatthias Clasen2018-06-251-2/+0
| | | | | 4.0 will represent a clean epoch. We don't want to have lots of noise in the docs about 2.x or 3.x.
* eventcontrollerkey: Port to new API modelCarlos Garnacho2018-04-261-4/+1
|
* gtkeventcontrollerkey: Add ::focus-in/out signalsCarlos Garnacho2018-04-051-0/+28
| | | | And handle GDK_FOCUS_CHANGE events in order to emit those.
* gtkeventcontrollerkey: Add get_group() callCarlos Garnacho2018-04-051-0/+13
| | | | | Callers can use this function on a key-pressed/released signal to find out the key event group, useful in a few places.
* eventcontrollerkey: Add function to forward stuff elsewhereCarlos Garnacho2018-04-051-1/+20
|
* gtk: Add GtkEventControllerKeyCarlos Garnacho2018-04-051-0/+218
This event controller is meant to replace usage from key-press/release-event handlers all through. Optionally it can be set a GtkIMContext, so interaction is carried by the controller.