Matthias Koenig wrote:

> we have a bug report that keybindings with Alt does not work in gvim if
> the X input method is enabled:
> 
> Testcase 
> 
>     :set wak=no   # disable keybindings for the menu
>     :tabnew
>     :map <M-1> 1gt
>     :map <M-2> 2gt
> 
> This should allow you to switch with Alt-1 and Alt-2 between tabs, but this
> does not work.  The workaround is to disable X input method 
> (with ":set imdisable"). Then it works.
> 
> Maybe there's some relation to 
> http://bugzilla.gnome.org/show_bug.cgi?id=331369.
> 
> In the code it seems that GtkEventKey->state field has set Meta1
> correctly. So the code in (vim) gui_gtk_x11.c:key_press_event() seems
> to be the cause.

This may depend on the kind of input method that you are using.

You seem to be able to get the key event.  Perhaps you can step through
the code to see what the difference is between the input method being on
and off.

-- 
hundred-and-one symptoms of being an internet addict:
145. You e-mail your boss, informing him you'll be late.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to