The enter key on the main body of the keycode and the enter key on the
number pad produce different keycodes (According to showkey on my
Linux box, 28 and 96 respectively). You could probably use that,
although it wouldn't work on a laptop which lacks a seperate number
pad.
Mike
On Mon, Apr 14, 2014 at 5:33 AM, Philip Pemberton
<classiccmp at philpem.me.uk> wrote:
On 14/04/14 10:06, SPC wrote:
Great news ! My sincere congratulations for you
and your work.
About your enquiry about how find a difference between the ENTER and RETURN
keys... I think that it would be possible to do it checking the keyboard
'scancode'. This is a concept from the early times of the PC but I suppose
that some applications have been using this technique even nowadays. It
must be easy to get some examples of use.
The PC keyboard only has one combined "enter/return" key; the UNIX PC
has separate ones. The problem is that we have to somehow control a UNIX
PC with a PC keyboard -- when the UNIX PC keyboard has more keys than
the IBM PC.
--
Phil.
classiccmp at philpem.me.uk
http://www.philpem.me.uk/