Re: Window keyup not working

Lars Jensen <[email protected]> Sat, 23 Sep 2017 11:48:23 -0700
Newsgroups gmane.comp.lang.realbasic.user
Message-ID <CACwqw68Hjtjc9vP+8sXcpdLPYLDjXjV-yCoomZppsLLgNiHnxQ@mail.gmail.com>
I haven't read this all the way through, but maybe it will help:

https://forum.xojo.com/11433-window-keyup-doesn-t-fire/0

On Sat, Sep 23, 2017 at 9:09 AM, donJ <[email protected]> wrote:

> Hi
> What I want to do is allow the user to hold down a key to briefly show a
> value in a Label.
> In a new project, this works:
>
> KeyDown(Key as String) as Boolean
>     If Key = "c" then
>         Label1.text = "the info"
>     End if
>
> KeyUp(Key as String)
>     If Key = "c" then
>         Label1.text = ""
>     End if
>
> In the app I'm working on, KeyDown works fine, but KeyUp never fires (with
> or without "return true")
> None of the controls on the window have a KeyDown nor a KeyUp event
> handler.
> All of the controls on the window are either canvases or labels, many
> include MouseDown and MouseUp event handlers
>
> Does anyone have an idea what sort of thing might be interferring? I don't
> know where else to look.
>
> Xojo2017r2.1
> Linux Mint 18 and also Debian 7
>
> Thanks for your time,
> Don
>
>
> To unsubscribe, email [email protected]
>
>



To unsubscribe, email [email protected]