From 304f3a8b476351230bc0324597f0689e9cddebeb Mon Sep 17 00:00:00 2001 From: Frank Lanitz Date: Sun, 11 Mar 2012 11:51:47 +0100 Subject: [PATCH] Adding a small note pointing out that setting a default keybinding might not the best idea for plugin maintainers --- src/keybindings.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/keybindings.c b/src/keybindings.c index 106b4a8f..fe32d6d1 100644 --- a/src/keybindings.c +++ b/src/keybindings.c @@ -131,6 +131,9 @@ GeanyKeyBinding *keybindings_get_item(GeanyKeyGroup *group, gsize key_id) /* This is used to set default keybindings on startup. * Menu accels are set in apply_kb_accel(). */ /** Fills a GeanyKeyBinding struct item. + * @note Always set @a key and @a mod to 0, otherwise you will likely + * cause conflicts with the user's custom, other plugin's keybindings or + * future default keybindings. * @param group Group. * @param key_id Keybinding index for the group. * @param callback Function to call when activated, or @c NULL to use the group callback.