This is a counterpart to gdk_event_matches() that can be used to obtain a shortcut matching an event.