Re: Key binding questions...

Robert Heller <[email protected]> Tue, 24 May 2005 14:28:31 +0200
Newsgroups gmane.comp.mozilla.devel.unix
Organization Deepwoods Software
Message-ID <[email protected]>
  "J.O. Aho" <[email protected]>,
  In a message on Tue, 24 May 2005 06:45:13 +0200, wrote :

"A> Robert Heller wrote:
"A> 
"A> > (Upgrading to Firefox is not an option under RH 7.3 and I have a pile of
"A> > reasons, include particular hardware and software for not upgrading my
"A> > RH 7.3 system at present.)
"A> 
"A> Download the SourceRPM for Fedora and install the source
"A> 
"A> rpm -ivh firefox-xxxx-src.rpm
"A> 
"A> then go to /usr/src/redhat/SPECS and edit the spec file, change the toolkit to 
"A> gtk and then rebuild the RPM
"A> 
"A> rpmbuild -ba /usr/src/redhat/SPECS/firefox.spec
"A> 
"A> You should after a good whiles waiting get a RPM that works with RH7.3.
"A> 
"A> Keep in mind that some key combinations will have changed, as Gnome2/gtk2 
"A> blocks some of the default key combinations, so the *nix version will always 
"A> get different combinations than what other versions has.

Question:

	Is it possible to set up Emacs key-bindings in FireFox?  Is it
NOT possible to set them up in Mozilla?  I don't particularly care about
versions other then the *nix -- ALL of the computers that I personally
use run Linux.  I don't own any machines running any other operating
system and I don't have any reason to get machines running any other
operating system, so Mozilla or FireFox behaviors under other O/S are a
non-issue for me.  I do know that with Netscape 4.<mumble> and earlier
it was easy to get Emacs bindings via the Motif 'translations' resource
in my .Xdefaults file:

*XmTextField.translations:		#override			\n\
	~Meta ~Alt Ctrl<Key>a:		beginning-of-line()		\n\
	~Meta ~Alt Ctrl<Key>b:		backward-character()		\n\
	~Meta ~Alt Ctrl<Key>d:		delete-next-character()		\n\
	~Meta ~Alt Ctrl<Key>e:		end-of-line()			\n\
	~Meta ~Alt Ctrl<Key>f:		forward-character()		\n\
	~Meta ~Alt Ctrl<Key>g:		process-cancel()		\n\
	~Meta ~Alt Ctrl<Key>h:		delete-previous-character()	\n\
	~Meta ~Alt Ctrl<Key>k:		delete-to-end-of-line()		\n\
	~Meta ~Alt Ctrl<Key>w:		cut-clipboard()			\n\
	Meta ~Ctrl<Key>b:		backward-word()			\n\
	 Alt ~Ctrl<Key>b:		backward-word()			\n\
	Meta ~Ctrl<Key>d:		delete-next-word()		\n\
	 Alt ~Ctrl<Key>d:		delete-next-word()		\n\
	Meta ~Ctrl<Key>f:		forward-word()			\n\
	 Alt ~Ctrl<Key>f:		forward-word()			\n\
	Meta ~Ctrl<Key>w:		copy-clipboard()		\n\
	 Alt ~Ctrl<Key>w:		copy-clipboard()		\n\
	Meta ~Ctrl<Key>osfLeft:		backward-word()			\n\
	 Alt ~Ctrl<Key>osfLeft:		backward-word()			\n\
	Meta ~Ctrl<Key>osfRight:	forward-word()			\n\
	 Alt ~Ctrl<Key>osfRight:	forward-word()			\n\
	Meta ~Ctrl<Key>osfBackSpace:	delete-previous-word()		\n\
	 Alt ~Ctrl<Key>osfBackSpace:	delete-previous-word()		\n\
	Meta ~Ctrl<Key>osfDelete:	delete-previous-word()		\n\
	 Alt ~Ctrl<Key>osfDelete:	delete-previous-word()		\n\
	Meta ~Ctrl<Key>BackSpace:	delete-previous-word()		\n\
	 Alt ~Ctrl<Key>BackSpace:	delete-previous-word()		\n\
	Meta ~Ctrl<Key>Delete:	delete-previous-word()		\n\
	 Alt ~Ctrl<Key>Delete:	delete-previous-word()		\n\
	<Key>osfBackSpace:	delete-previous-character()		\n\
	<Key>osfDelete:		delete-previous-character()		\n\
	<Key>BackSpace:	delete-previous-character()		\n\
	<Key>Delete:		delete-previous-character()		\n

*XmText.translations:			#override			\n\
	~Meta ~Alt Ctrl<Key>a:		beginning-of-line()		\n\
	~Meta ~Alt Ctrl<Key>b:		backward-character()		\n\
	~Meta ~Alt Ctrl<Key>d: 		delete-next-character()		\n\
	~Meta ~Alt Ctrl<Key>e:		end-of-line()			\n\
	~Meta ~Alt Ctrl<Key>f:		forward-character()		\n\
	~Meta ~Alt Ctrl<Key>g:		process-cancel()		\n\
	~Meta ~Alt Ctrl<Key>h: 		delete-previous-character()	\n\
	~Meta ~Alt Ctrl<Key>k:		delete-to-end-of-line()		\n\
	~Meta ~Alt Ctrl<Key>w:		cut-clipboard()			\n\
	Meta ~Ctrl<Key>b:		backward-word()			\n\
	 Alt ~Ctrl<Key>b:		backward-word()			\n\
	Meta ~Ctrl<Key>d:		delete-next-word()		\n\
	 Alt ~Ctrl<Key>d:		delete-next-word()		\n\
	Meta ~Ctrl<Key>f:		forward-word()			\n\
	 Alt ~Ctrl<Key>f:		forward-word()			\n\
	Meta ~Ctrl<Key>w:		copy-clipboard()		\n\
	 Alt ~Ctrl<Key>w:		copy-clipboard()		\n\
	Meta ~Ctrl<Key>osfLeft:		backward-word()			\n\
	 Alt ~Ctrl<Key>osfLeft:		backward-word()			\n\
	Meta ~Ctrl<Key>osfRight:	forward-word()			\n\
	 Alt ~Ctrl<Key>osfRight:	forward-word()			\n\
	Meta ~Ctrl<Key>osfBackSpace:	delete-previous-word()		\n\
	 Alt ~Ctrl<Key>osfBackSpace:	delete-previous-word()		\n\
	Meta ~Ctrl<Key>osfDelete:	delete-previous-word()		\n\
	 Alt ~Ctrl<Key>osfDelete:	delete-previous-word()		\n\
	Meta ~Ctrl<Key>BackSpace:	delete-previous-word()		\n\
	 Alt ~Ctrl<Key>BackSpace:	delete-previous-word()		\n\
	Meta ~Ctrl<Key>Delete:	delete-previous-word()		\n\
	 Alt ~Ctrl<Key>Delete:	delete-previous-word()		\n\
	<Key>osfBackSpace:	delete-previous-character()		\n\
	<Key>osfDelete:		delete-previous-character()		\n\
	<Key>BackSpace:	delete-previous-character()		\n\
	<Key>Delete:		delete-previous-character()		\n\
									\
	~Meta ~Alt Ctrl<Key>n:		next-line()			\n\
	~Meta ~Alt Ctrl<Key>p:		previous-line()			\n\
	~Meta ~Alt Ctrl<Key>v:		next-page()			\n\
	Meta ~Ctrl<Key>v:		previous-page()			\n\
	 Alt ~Ctrl<Key>v:		previous-page()			\n


Is there something simular for Mozzilla / Firefox?


"A> 
"A> 
"A>   //Aho
"A>                      

                                     \/
Robert Heller                        ||InterNet:   [email protected]
http://vis-www.cs.umass.edu/~heller  ||            [email protected]
http://www.deepsoft.com              /\FidoNet:    1:321/153