From: Vincent L. <vi...@vi...> - 2003-06-27 15:09:06
|
On Fri, Jun 27, 2003 at 12:57:44 +0100, Thomas Leonard wrote: > On Wed, Jun 25, 2003 at 11:32:07PM +0100, Geoff Youngs wrote: > > :( I wouldn't want to swap the buttons for everything - I still like > > being able to insert the current selection at the cursor using middle > > button etc, but I also prefer the context menu on button 2 in apps > > which were written to use context menus in a RISC OSy way. Me too. > What about applications like gnome-terminal and konsole, which use a > single popup menu (unless you also turn the menubar on) AND support > paste? I don't use these applications, so I'm not concerned. :) A modifier key (e.g. Ctrl) could be used for one of these two operations (the less common one). IMHO, such choices should be left to the user. For instance, the user may want to have selection + adjust selection + paste without a modifier key (like in xterm). The user may find that paste with button 2 is too dangerous and may prefer a popup menu instead, and this may depend on the application (pasting in a text editor is potentially less dangerous than pasting in an xterm running a shell). Moreover, a popup menu may define several paste operations (e.g. a "clear current text and paste" would be useful in several contexts). > Also, only ROX-Filer has ever supported this; even the ROX pager > applet uses button-3 for menus. This should be configurable. > And the pinboard has to use button-3 for menus, because button-2 is > for the window manager, so we're not even consistant within > ROX-Filer. Button 2 is still used for a popup menu, so this is consistant. But this should be configurable (fvwm2 uses the 3 buttons). > I've removed the option, but left the code in bind.c. Change > 'menu_button = 3' to 'menu_button = 2' if you really need the old > behaviour. Hard-coding values is a bad programming practice. You should define a context-menu function and have a way to bind keys or menu buttons (or whatever peripheral is used) to such functions. > Of course, 'xmodmap' can place all context menus on button-2 still. Not without affecting other applications such as xterm or emacs. -- Vincent Lefèvre <vi...@vi...> - Web: <http://www.vinc17.org/> - 100% validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des Jeux Mathématiques et Logiques, TETRHEX, etc. Work: CR INRIA - computer arithmetic / SPACES project at LORIA |