TEB and Function Key JS code
Hello Rod,
In one of my simulation, I have losts to TEBs. After entering the text you need to press the Function Key (in this case F3). To do the shortcut, I am using the below script. This works amazing when its with just the click boxes.
Anyways, the issue that I am facing is, once I cross the slide that executes this JS, the TEB stops working. It does not allow me to enter any text further.
$(function(){
//Yes! use keydown 'cus some keys is fired only in this trigger,
//such arrows keys $("body").keydown(function(e){
//well you need keep on mind that your browser use some keys
//to call some function, so we'll prevent this e.preventDefault();
//now we caught the key code, yabadabadoo!!
var keyCode = e.keyCode || e.which;
//your keyCode contains the key code, F1 to F12
//is among 112 and 123. Just it. console.log(keyCode);
});
});
Please let me know if you know any fix for this issue.
