Disable keyboard nav & entry boxes
October 25, 2007 12:00 AM
Hi Ben,Well, the code in the kitchenSync script is the same that's been posted and suggested elsewhere on the boards, a partial example listed below:function keyHandler(e) {var pressedKey; if (document.all) { e = window.event; } if (document.layers) { pressedKey = e.which; } if (document.all) { pressedKey = e.keyCode; } pressedCharacter = String.fromCharCode(pressedKey); if (pressedKey== 8 || (pressedKey>34&&pressedKey<41)) { confirm(cheatMessage); return false; }}[/CODE]I primarily use the kitchenSync script to size and position my published project and the .js file is at the root of my project. I'm completely guessing here but in order to return functionality on pages with text entry boxes would I need to dis-inherit that .js file on those pages?[CODE]function keyHandler(e) {var pressedKey; if (document.all) { e = window.event; } if (document.layers) { pressedKey = e.which; } if (document.all) { pressedKey = e.keyCode; } pressedCharacter = String.fromCharCode(pressedKey); if (pressedKey== 8 || (pressedKey>34&&pressedKey<41)) { confirm(cheatMessage); return false; }}[/CODE]I primarily use the kitchenSync script to size and position my published project and the .js file is at the root of my project. I'm completely guessing here but in order to return functionality on pages with text entry boxes would I need to dis-inherit that .js file on those pages?
Discussions have been disabled for this post