Fix Alt+[0-9] switching tabs when other modifiers are also held.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5355 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2010-11-02 15:03:16 +00:00
parent 65deb1e51d
commit 98489fed51
2 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,8 @@
a Markup document.
* plugins/htmlchars.c:
Rename submenu item labels to be more descriptive.
* src/keybindings.c:
Fix Alt+[0-9] switching tabs when other modifiers are also held.
2010-11-01 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>

View File

@ -925,7 +925,7 @@ void keybindings_show_shortcuts(void)
static gboolean check_fixed_kb(guint keyval, guint state)
{
/* check alt-0 to alt-9 for setting current notebook page */
if (state & GDK_MOD1_MASK && keyval >= GDK_0 && keyval <= GDK_9)
if (state == GDK_MOD1_MASK && keyval >= GDK_0 && keyval <= GDK_9)
{
gint page = keyval - GDK_0 - 1;
gint npages = gtk_notebook_get_n_pages(GTK_NOTEBOOK(main_widgets.notebook));