mousemove doesn't recognize "shiftkey is down", but only under Windows

Brian Milby brian at milby7.com
Sun Sep 23 22:47:30 EDT 2018


Correct, but I did have to move the mouse (since it was inside the
mousemove handler).  So if I stopped moving and pressed/released the shift,
when I moved the mouse it did change to "down" / "up" as appropriate.  It
could be related to the VM.  I don't have a Win7 VM, so I can't test that
OS right now.  I did the test on an actual Win10 laptop.

On Sun, Sep 23, 2018 at 9:02 PM Howard Bornstein via use-livecode <
use-livecode at lists.runrev.com> wrote:

> Thanks Brian,
>
> I don't know what the problem could be. All my test show that for the Shift
> key and the Option key, when called within a mousemove handler, it doesn't
> register that the keys are down unless the mouse button is clicked first.
> I'm running Windows 7 instead of 10, but I doubt that's the difference.
> It's possible that Parallels, might be interfering somehow, but it's a
> pretty specific issue. You ran my little test script and got the "Up"
> output by just pressing the shift key down and nothing else?
>
> On Sun, Sep 23, 2018 at 3:37 PM Brian Milby via use-livecode <
> use-livecode at lists.runrev.com> wrote:
>
> > I just did a quick test on Win10 and it works as it should. Tested with
> LC
> > 9.0.1 stable.
> >
> > Thanks,
> > Brian
> > On Sep 23, 2018, 5:20 PM -0500, Howard Bornstein via use-livecode <
> > use-livecode at lists.runrev.com>, wrote:
> > > Sadly, both the keysDown() function as well as rawKeyDown, only return
> a
> > > keycode for the shift key (and the option key) upon key UP. All the
> other
> > > keys work on key down but these do not. Do you have any idea why?
> > >
> > > Should I file a bug report on ShiftKey down? Were you able to verify
> this
> > > bug from the test code I sent (I put it in the card handler of a
> stack)?
> > >
> > > On Sun, Sep 23, 2018 at 12:04 PM J. Landman Gay via use-livecode <
> > > use-livecode at lists.runrev.com> wrote:
> > >
> > > > On 9/22/18 11:03 PM, Howard Bornstein via use-livecode wrote:
> > > > > This is exceedingly weird. I can't get a mousemove handler to
> > recognize
> > > > if
> > > > > the shiftkey is down (although I think this is true for all key
> > > > > modifiers—Shiftkey down and OptionKey down for sure). The only way
> it
> > > > > detects this state is if I click the mouse button while holding the
> > > > > shiftkey down.
> > > >
> > > > You could see if the keysDown() function works instead.
> > > >
> > > > --
> > > > Jacqueline Landman Gay | jacque at hyperactivesw.com
> > > > HyperActive Software | http://www.hyperactivesw.com
> > > >
> > > >
> > > > _______________________________________________
> > > > use-livecode mailing list
> > > > use-livecode at lists.runrev.com
> > > > Please visit this url to subscribe, unsubscribe and manage your
> > > > subscription preferences:
> > > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > >
> > >
> > >
> > > --
> > > Regards,
> > >
> > > Howard Bornstein
> > > -----------------------
> > > www.designeq.com
> > > _______________________________________________
> > > use-livecode mailing list
> > > use-livecode at lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
> --
> Regards,
>
> Howard Bornstein
> -----------------------
> www.designeq.com
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



More information about the use-livecode mailing list