hey all...  i have not been on the list in quite awhile... and when i was on it before 
i never posted anything...  sry for the lurking... 

so reading the above forgive the following if this was already done or it could have 
been handled some other way... 

anyway, i had a need to recognize the Enter key and Tab key on a Govt website for 508 
compliance (if you havent heard of 508 then keep the job you have and never get a job 
with the govt)... 

so i modified the DynApi keyboard.js (attached) to return the string 'enter' for the 
Return Carriage and a 'tab' for tabs... 

------------------------ 
43: if (((curKey>='a')&&(curKey<='z'))||((curKey>='0')&&(curKey<='9'))) 
evt.charKey=curKey; 
44: // TERRY - checking for Return Carriage/Tab 
45: else if (curKey=='\r') evt.charKey='enter'; 
46: else if (curKey=='\t') evt.charKey='tab'; 
47: else evt.charKey=null; 
------------------------ 


this can actually been done to check for any literal or ascii character...  but i only 
had need of these 2... 

sry again if this was already mentioned... 


Terry Bader 
Senior Web Developer 
Northrop Grumman IT 

(757)581-5981 
[EMAIL PROTECTED] 
 
             

Attachment: keyboard.zip
Description: Binary data

Reply via email to