Solaris Nevada / OpenSolaris Mac book right-click
By pradhap on Jul 17, 2008
When you run Solaris on Macbook. Trouble is that the right-click doesn't work . One way to solve is to have USB mouse or you can have a key mapped to right-click so that when ever you press the key it automatically maps the key to right click. To enable this goto Start -> Preferences -> Keyboard Accessibility Preferences .
click on "Enable Keyboard accessibility features" and then click "Enable Mouse Keys"
We need the scancode of the key to map it to right-click. For identifying scancode you can run Xev utility . Start the terminal and run xev "/usr/openwin/demo/xev" program. Click on Xev window and press the key which you wanted to map it to right-click, xev will show the scancode for the key . Once you get the scancode you can kill xev.
Sample xev screen:
Now to open your favorite editor and create a file under your home directory ~/ .xmodmap . Put the following entry into it.
keycode 117 = Pointer_Button3
Save the file and run the command " xmodmap ~/.xmodmap" to activate it. Now while pressing the key you should be able to see right-click menu. Put the an entry in
Start -> Preferences -> Session
so that "xmodmap" command is executed each time you log into Gnome. Add entry "/usr/openwin/bin/xmodmap <path>" . Substitute <path> with location of ".xmodmap" file eg. /export/home/guest/.xmodmap