Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Snorri B. on October 04, 2016, 02:52:42 pm



Title: Detect caps lock?
Post by: Snorri B. on October 04, 2016, 02:52:42 pm
Is there a way in BDL to detect if caps lock is on? It would be useful when prompting for passwords.

Regs,
-Snorri


Title: Re: Detect caps lock?
Post by: Reuben B. on October 05, 2016, 11:13:57 pm
Hi Snorri,

I am not aware of a way.

However would

INPUT login, passport

IF passport = passport.toUpperCase() THEN
    #


Title: Re: Detect caps lock?
Post by: Reuben B. on October 05, 2016, 11:17:21 pm
Ooops, somehow pressed Alt+S as I was typing

I meant

IF password = password.toUpperCase()

as a test that could be used as a hint that perhaps the Caps lock key was on.

Reuben