aboutsummaryrefslogtreecommitdiff
path: root/src/textadept.c
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2012-10-16 13:06:55 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2012-10-16 13:06:55 -0400
commit1d394aca41cccce46f45110670eba0ec4004297b (patch)
tree4eab3542244d2c1a87f3f3db213c26c57c567776 /src/textadept.c
parenta6d7c64d9ffaa987407a52f3e9b5c9c181e196a9 (diff)
downloadtextadept-1d394aca41cccce46f45110670eba0ec4004297b.tar.gz
textadept-1d394aca41cccce46f45110670eba0ec4004297b.zip
Fixed GUI menu key shortcut handling.
Diffstat (limited to 'src/textadept.c')
-rw-r--r--src/textadept.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textadept.c b/src/textadept.c
index 315134f8..851bf3d1 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -863,7 +863,7 @@ static void l_pushmenu(lua_State *L, int index, GCallback callback,
if (label) {
menu_item = (*label) ? gtk_menu_item_new_with_mnemonic(label)
: gtk_separator_menu_item_new();
- if (key || modifiers)
+ if (*label && key > 0)
gtk_widget_add_accelerator(menu_item, "activate", accel, key,
modifiers, GTK_ACCEL_VISIBLE);
g_signal_connect(menu_item, "activate", callback,