Sets the is_modifier field of the GdkEvent according to the supplied boolean.
| 211 | // Sets the is_modifier field of the GdkEvent according to the supplied |
| 212 | // boolean. |
| 213 | static void SetIsModifierEvent(GdkEvent* p_ev, bool is_modifier) |
| 214 | { |
| 215 | assert(p_ev->type == GDK_KEY_RELEASE || p_ev->type == GDK_KEY_PRESS); |
| 216 | p_ev->key.is_modifier = (int) is_modifier; |
| 217 | } |
| 218 | |
| 219 | KeypressEventsHandler::KeypressEventsHandler(GdkDrawable* win_handle, guint32 modifiers_state) : |
| 220 | modifiers_(), win_handle_(win_handle), last_event_time_(TimeSinceBootMsec()), |
no outgoing calls
no test coverage detected