Gnome Shift-F10 Remapping

"Terry Davis" <[email protected]>
Newsgroups gmane.comp.gnome.lib.gconf
Message-ID <[email protected]>
I need to reconfigure the Gnome Shift-F10 key (popup context menu) in a terminal
window as its needed by an application our users need to run.

I have corresponded with several gnome devel and have the following
recommendations on re-mapping the key.

----
What you have to do is create a gtkrc file that remaps the key.

An easy example to look at is this file:
/usr/share/themes/Emacs/gtk-2.0-key/gtkrc

So something like this in a gtkrc:

 binding "change-popup-menu-key" {
  bind "<ctrl><shift>f10" { "popup-menu" () }  }  

class "VteTerminal" binding "change-popup-menu-key"
----
Try global "GtkWidget" instead of VteTerminal perhaps? That would kill the
keybinding for all widgets, but maybe that's fine for your situation.

----
> I was able to define an additional key that pops a context menu 
> (ctrl-shift-f10) by using GtkWidget as the class, but the old value 
> (shift-f10) was not removed, which makes sense I guess?
> 
> What is the format for de-binding a key?
> Like...
> 
> binding "get-rid-of-context-key" {
> 	bind "<shift>f10"  { "" }
> }
> (etc)
> 

I'm not sure to be honest... you might try: bind "<shift>f10" {}  ?

I expected specifying a new key to overwrite the old one...

You might try "VteTerminal" rather than "VTETerminal" also.
----

Anyone able to contribute to this, I'd appreciate it

At this point I still have not re-mapped shift-F10 within a gnome-terminal
window.

Thanks

T Davis
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.