nanogui: Support for on-screen keyboard


Previous by date: 15 May 1999 18:20:28 -0000 Re: Support for on-screen keyboard, Vidar Hokstad
Next by date: 15 May 1999 18:20:28 -0000 Bitblt proposal (was: Re: bogl routines), Ben Pfaff
Previous in thread: 15 May 1999 18:20:28 -0000 Re: Support for on-screen keyboard, Vidar Hokstad
Next in thread: 15 May 1999 18:20:28 -0000 Re: Support for on-screen keyboard, Vidar Hokstad

Subject: Re: Support for on-screen keyboard
From: Warner Losh ####@####.####
Date: 15 May 1999 18:20:28 -0000
Message-Id: <199905151815.MAA61253@harmony.village.org>

In message ####@####.#### Vidar Hokstad writes:
: With Alex' suggestion, it would be something like:
: 
:   windowid = GetLastFocusedWindow()
:   SendKeyEvent(...)
: 
: I think Alex' suggestion is cleaner than mine, as it would work with any
: widget set without modification.

There is a race condition here.  If the keyboard focus changes between 
the GetLastFocusedWindow and SendKeyEvent, then you can have
problems.

Why not just SendKeyEvent(...)?  Maybe with a WindowID of 0 to mean
current focus.  That way there can be no race condition.

I've had to fight many problems like this in other toolkits (or to
keep other toolkits from having them).  It happens more often than
you'd otherwise think.  I know I was surprised to find them when I was 
working on OI.

Warner

Previous by date: 15 May 1999 18:20:28 -0000 Re: Support for on-screen keyboard, Vidar Hokstad
Next by date: 15 May 1999 18:20:28 -0000 Bitblt proposal (was: Re: bogl routines), Ben Pfaff
Previous in thread: 15 May 1999 18:20:28 -0000 Re: Support for on-screen keyboard, Vidar Hokstad
Next in thread: 15 May 1999 18:20:28 -0000 Re: Support for on-screen keyboard, Vidar Hokstad


Powered by ezmlm-browse 0.20.