View Full Version : Key navagation -- help
TJ_Tigger
04-22-2004, 06:45 PM
I am trying to create some key navagation in an app that I am working with and I want to be able to click a back button when a person presses [BACKSPACE] or [ALT]+[<]. The backspace works no problem. But the Alt + left arrow is not working. Here is the code.
if (e_Key == 8) or ((e_Key == 37) and (e_Modifiers.alt == true)) then
if Button.IsVisible("B-Back") then
Page.ClickObject("B-Back")
end
end
Not working and I am confused. I have had the modifiers work in the past but it is not working now so I figure it is me :D
Tigg
Intrigued
04-22-2004, 09:42 PM
I have never been able to get the 'ALT' modifier to work. I am still not sure why my keyboard that I use to code on does not recognize such.
Possible 'feature' of the AMS software?
SUF6NEWBIE
04-22-2004, 09:50 PM
wild guess only,,could it have anything to do with
the initial attributes of the button ie. is.enabled
Me either... haven't had any luck with the ALT key modifier.
I have never been able to get the 'ALT' modifier to work. I am still not sure why my keyboard that I use to code on does not recognize such.
Possible 'feature' of the AMS software?
yosik
04-23-2004, 08:25 AM
Guys,
In the help file, under virtual keycode, the code for Alt is missing. This says something. I guess it is a "well known " problem
Yossi
TJ_Tigger
04-23-2004, 09:02 AM
e_Modifiers.ctrl works when used in conjunction with another key but the alt does not. I will post in the suggestion/report section.
TJ_Tigger
04-23-2004, 09:38 AM
this does work.
if ((e_Key == 8) or ((e_Key == 37) and (e_Modifiers.alt == true) and (e_Modifiers.ctrl == true))) then
if Button.IsVisible("B-Back") then
Page.ClickObject("B-Back")
end
end
It appears that the alt key does not work without some other modifier as well.
Intrigued
04-23-2004, 10:26 AM
TJ... I noticed before that if you use not between the e_Key and modifiers along with or, you then can make sure a user does not use say cntrl-left arror and alt-left arrow to do the same function.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.