Lisp HUG Maillist Archive

Query Ctrl or Shift keys only?

Hi All,

after playing with gesture-specs I do not succeed to query the control or shift keys unless another meaningful key is pressed.

Is it possible to know if the shift or control key is down (or up) in LispWorks?

Any hint or hack welcome.


Andreas


RE: Query Ctrl or Shift keys only?

> -----Original Message-----
> From: owner-lisp-hug@lispworks.com 
> [mailto:owner-lisp-hug@lispworks.com] On Behalf Of Andreas Thiele
> Sent: Thursday, November 13, 2008 12:08 PM
> To: lisp-hug@lispworks.com
> Subject: Query Ctrl or Shift keys only?
> 
> 
> 
> Hi All,
> 
> after playing with gesture-specs I do not succeed to query 
> the control or shift keys unless another meaningful key is pressed.
> 
> Is it possible to know if the shift or control key is down 
> (or up) in LispWorks?
> 
> Any hint or hack welcome.
> 

Sorry, I succeeded in hacking myself:

(win32:get-async-key-state win32:vk_control)

(see http://msdn.microsoft.com/en-us/library/ms646293(VS.85).aspx)
(for keycodes see http://msdn.microsoft.com/en-us/library/ms645540(VS.85).aspx
or use (apropos 'vk_))

Andreas


Re: Query Ctrl or Shift keys only?

Unable to parse email body. Email id is 8789

Updated at: 2020-12-10 08:41 UTC