Issue 65578 - Context menu key on GTK
Summary: Context menu key on GTK
Status: CLOSED FIXED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: 680m167
Hardware: All Unix, all
: P3 Trivial (vote)
Target Milestone: OOo 2.0.4
Assignee: eric.savary
QA Contact: issues@gsl
URL:
Keywords:
: 54969 (view as issue list)
Depends on:
Blocks:
 
Reported: 2006-05-19 10:07 UTC by mmeeks
Modified: 2006-08-15 15:59 UTC (History)
1 user (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
a patch (853 bytes, patch)
2006-05-19 10:08 UTC, mmeeks
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description mmeeks 2006-05-19 10:07:49 UTC
So - the KEY_MENU seems to be a keysym that gives focus to the menu - hence the
code to simulate it's press/release on Alt press(/release) in the gtk+ backend.

However - Gtk+ uses GDK_Menu to fire it's popup_menu signal (for context menus):

gtkwidget.c:

  gtk_binding_entry_add_signal (binding_set, GDK_F10, GDK_SHIFT_MASK,
                                "popup_menu", 0);
  gtk_binding_entry_add_signal (binding_set, GDK_Menu, 0,
                                "popup_menu", 0);  

this then is hooked by gtkentry, gtklabel, treeview etc. to provide that context
menu [ in fact everything -except- the menu-bar ;-) ].

Anyhow - this patch makes my context menu key work nicely, where I have it -
popping up the context menu I'd expect.
Comment 1 mmeeks 2006-05-19 10:08:04 UTC
Created attachment 36589 [details]
a patch
Comment 2 philipp.lohmann 2006-05-19 10:18:40 UTC
Ah. I made the wrong connection between GDK_Menu and KEY_MENU due the same name
:-) Will commit the patch CWS vcl59.
Comment 3 philipp.lohmann 2006-05-19 10:23:40 UTC
committed in CWS vcl59
Comment 4 philipp.lohmann 2006-05-31 12:03:45 UTC
please verify in CWS vcl59

context menu key now works in gtk and generic plugin provided you have an
Xserver that delivers XK_Menu for that key (can be check with xev)

re-open issue and reassign to es@openoffice.org
Comment 5 philipp.lohmann 2006-05-31 12:03:59 UTC
reassign to es@openoffice.org
Comment 6 philipp.lohmann 2006-05-31 12:04:18 UTC
reset resolution to FIXED
Comment 7 eric.savary 2006-06-06 16:51:43 UTC
Context menu should work using context menu/Compose key.
-> Verified
Comment 8 philipp.lohmann 2006-06-15 15:16:51 UTC
*** Issue 54969 has been marked as a duplicate of this issue. ***
Comment 9 eric.savary 2006-08-15 15:59:31 UTC
Renamed summary
Ok in m181