Page 3 of 3
Re: Function key detection
Posted: Thu Mar 16, 2017 3:02 pm
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
Re: Function key detection
Posted: Thu Mar 16, 2017 3:11 pm
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?
Re: Function key detection
Posted: Thu Mar 16, 2017 3:12 pm
by Glenn
I believe it needs to be the last one.
Glenn
Re: Function key detection
Posted: Thu Mar 16, 2017 3:17 pm
by pjshuey
I made it the last one and still no-go.
Re: Function key detection
Posted: Thu Mar 16, 2017 3:53 pm
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
Re: Function key detection
Posted: Thu Mar 16, 2017 4:11 pm
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.
Re: Function key detection
Posted: Thu Mar 16, 2017 4:21 pm
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
Re: Function key detection
Posted: Thu Mar 16, 2017 4:26 pm
by pjshuey
I figured that would be the best solution.
Thanks for all of your help on this!
Patti
Re: Function key detection
Posted: Thu Mar 16, 2017 4:28 pm
by Glenn
I misspoke. It looks like only the Hybrid skin automatically adds the Continue link.
Glenn
Re: Function key detection
Posted: Fri Mar 17, 2017 12:18 am
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