Function key detection

Use this board to ask questions or have discussions with other Genie users.
User avatar
Glenn
Profound Logic Staff Member
Posts: 124
Joined: Mon Apr 14, 2014 4:08 pm
First Name: Glenn
Last Name: Hopwood
Company Name: Profound Logic Software
State / Province: Ohio
Country: United States
Contact:

Re: Function key detection

Post by Glenn »

Did you also make sure the settings.js file was linked into the Genie Skin's start.html file? Did you refresh the browser?

Glenn
pjshuey
Experienced User
Posts: 119
Joined: Wed May 25, 2016 11:58 am
First Name: Patti
Last Name: Shuey
Company Name: Conestoga Wood Specialties
Phone: 7174452886
Address 1: 645 Reading Road
City: East Earl
State / Province: Pennsylvania
Zip / Postal Code: 17519
Country: United States
Contact:

Re: Function key detection

Post by pjshuey »

I did refresh the browser but did not add it to the genie skin start.html. I added it and refreshed my browser again, but it still did not work. I added it as the first .js entry. Is that the correct spot?
User avatar
Glenn
Profound Logic Staff Member
Posts: 124
Joined: Mon Apr 14, 2014 4:08 pm
First Name: Glenn
Last Name: Hopwood
Company Name: Profound Logic Software
State / Province: Ohio
Country: United States
Contact:

Re: Function key detection

Post by Glenn »

I believe it needs to be the last one.

Glenn
pjshuey
Experienced User
Posts: 119
Joined: Wed May 25, 2016 11:58 am
First Name: Patti
Last Name: Shuey
Company Name: Conestoga Wood Specialties
Phone: 7174452886
Address 1: 645 Reading Road
City: East Earl
State / Province: Pennsylvania
Zip / Postal Code: 17519
Country: United States
Contact:

Re: Function key detection

Post by pjshuey »

I made it the last one and still no-go.
User avatar
Glenn
Profound Logic Staff Member
Posts: 124
Joined: Mon Apr 14, 2014 4:08 pm
First Name: Glenn
Last Name: Hopwood
Company Name: Profound Logic Software
State / Province: Ohio
Country: United States
Contact:

Re: Function key detection

Post by Glenn »

Patti,

Sorry for the confusion, it appears that you will have to use the Function Key Pattern 2 setting. In my tests switching the previous setting I gave you to what's below worked.

pui["function key pattern2"] = "(F|CA|CF|CK|CMD|CM) ?([0-9]{1,2}) ?([=:-]) ?(\\S+)";

Glenn
pjshuey
Experienced User
Posts: 119
Joined: Wed May 25, 2016 11:58 am
First Name: Patti
Last Name: Shuey
Company Name: Conestoga Wood Specialties
Phone: 7174452886
Address 1: 645 Reading Road
City: East Earl
State / Province: Pennsylvania
Zip / Postal Code: 17519
Country: United States
Contact:

Re: Function key detection

Post by pjshuey »

That worked! Now, is there any way for it to recognize "Enter = Continue" as a function key? I know this one might be a long shot, but I'd like to try to get it to work.
User avatar
Glenn
Profound Logic Staff Member
Posts: 124
Joined: Mon Apr 14, 2014 4:08 pm
First Name: Glenn
Last Name: Hopwood
Company Name: Profound Logic Software
State / Province: Ohio
Country: United States
Contact:

Re: Function key detection

Post by Glenn »

By default I believe every skin adds a 'Continue' link/button to every screen so it should already be there. As for hiding it, I think you will need to do that yourself.

You have 2 choices.
  • Use screen level customizations in each screen to hide the text.
  • Write some JavaScript that you can put in the skin's custom.js file that will hide it.
Glenn
pjshuey
Experienced User
Posts: 119
Joined: Wed May 25, 2016 11:58 am
First Name: Patti
Last Name: Shuey
Company Name: Conestoga Wood Specialties
Phone: 7174452886
Address 1: 645 Reading Road
City: East Earl
State / Province: Pennsylvania
Zip / Postal Code: 17519
Country: United States
Contact:

Re: Function key detection

Post by pjshuey »

I figured that would be the best solution.

Thanks for all of your help on this!

Patti
User avatar
Glenn
Profound Logic Staff Member
Posts: 124
Joined: Mon Apr 14, 2014 4:08 pm
First Name: Glenn
Last Name: Hopwood
Company Name: Profound Logic Software
State / Province: Ohio
Country: United States
Contact:

Re: Function key detection

Post by Glenn »

I misspoke. It looks like only the Hybrid skin automatically adds the Continue link.

Glenn
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Function key detection

Post by Scott Klement »

Depending on the situation, you may be able to use the "Special Key Pattern" to detect Enter.
http://www.profoundlogic.com/docs/displ ... ey+Pattern
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests