keyboard error (the strangest thing...)

Grant McDorman grant "at" isgtec.com
Fri, 10 Sep 1999 19:54:29 +0000


--cmJC7u66zC7hs+87
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

Yep. The Copy, Paste, Front (and Cut) keys have the names SunCopy, SunPaste,
SunFront and SunCut, respectively. Unfortunately, the default assignments f=
or these keys
have three symbols each (normal, shift and a "special" assignment). On my
Solaris 2.6.1 system, the Sun server uses the following keycode setup:

keycode  56 =3D F15 F15 SunFront
keycode  58 =3D F16 F16 SunCopy
keycode  79 =3D F17 F17 SunOpen
keycode  80 =3D F18 F18 SunPaste
keycode 104 =3D F20 F20 SunCut

The *three* symbols for each key is a bit strange, but it's the way the Sun
software identifies the special keys. (The first two symbols are the normal
and shifted versions of the key).

Unfortunately, the VNC server used to have problems if you set more than 2
symbols per key; I don't know if the most recent version fixed that problem.

If it is, set up a file containing:

keysym F1 =3D F1 F1 SunFront
keysym F2 =3D F2 F2 SunCopy
keysym F3 =3D F3 F3 SunOpen
keysym F4 =3D F4 F4 SunPaste
keysym F5 =3D F4 F5 SunCut

and then pass the file on the command line of xmodmap (i.e. xmodmap somefil=
e).

If the server is not fixed, then only supply two symbols for each key (i.e.
keysym F1 =3D F1 SunFront).

This may make those function keys unusable for other applications, so choose
the keys you remap with care.

Don't do this for real Sun servers, by the way; you'll probably end up with
problems.

You can find out the server's keymap by doing an 'xmodmap -pk' or 'xmodmap
-pke' (slightly different formats for the two options, but the same
information). That's where I got Sun X server assignments above.

According to Mike Miller:
> Is it possible to use xmodmap to assign keys like F1, F2, etc., from the
> Win keyboard to perform the function of Copy, Paste, etc. keys on the Sun
> keyboard?  I'm using vncviewer on Win to see Xvnc on Solaris 2.6 and can't
> figure out how to get Copy, Paste, Front (the three Sun keys I use most).
>=20
> Mike
>=20
>=20


--=20

Grant McDorman <grant "at" isgtec.com>, Senior Software Developer
ISG Technologies, Inc.  <URL:http://www.isgtec.com>
Mississauga, Ontario, Canada


--cmJC7u66zC7hs+87
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQBVAwUBN9lSEUDmya2cFZ8ZAQH64gIAs3nHKo/7T9EE/zpgDvYhHwBAyzQ7vnGA
j9YKUFYFufOR9CaMGi8ns/8OC4vPqOprqasErqvqBOXPJamB3XUHDA==
=+HnI
-----END PGP SIGNATURE-----

--cmJC7u66zC7hs+87--


---------------------------------------------------------------------
The VNC mailing list - see http://www.uk.research.att.com/vnc/intouch.html
---------------------------------------------------------------------