diff --git a/src/core/keybindings.c b/src/core/keybindings.c index f750b2fca..63b0e1387 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -95,6 +95,12 @@ meta_key_binding_get_mask (MetaKeyBinding *binding) return binding->mask; } +gboolean +meta_key_binding_is_builtin (MetaKeyBinding *binding) +{ + return binding->handler->flags & META_KEY_BINDING_BUILTIN; +} + /* These can't be bound to anything, but they are used to handle * various other events. TODO: Possibly we should include them as event * handler functions and have some kind of flag to say they're unbindable. diff --git a/src/meta/keybindings.h b/src/meta/keybindings.h index 862e1b214..2cd2a378a 100644 --- a/src/meta/keybindings.h +++ b/src/meta/keybindings.h @@ -28,6 +28,7 @@ const char *meta_key_binding_get_name (MetaKeyBinding *binding); MetaVirtualModifier meta_key_binding_get_modifiers (MetaKeyBinding *binding); guint meta_key_binding_get_mask (MetaKeyBinding *binding); +gboolean meta_key_binding_is_builtin (MetaKeyBinding *binding); gboolean meta_keybindings_set_custom_handler (const gchar *name, MetaKeyHandlerFunc handler,