I have an image, and I use keyboards to apply some manipulations to it (translation, scaling ..). Above the image, I have an input text box that shows the image number in the data set. How to disable image manipulation when the cursor is in a text field? (i.e. disable the behavior that I assigned to each keyboard). I would also like to still edit the text box (e.g. to go to xx image number). From what I read here iPad Disable keyevent on input , I think the solution would be something like this:
// input text field var currentPosDisplay = $('<input type=text id="currentPos" onkeypress="return disableManipulation();" value="1" style="display:inline" >');
But I do not know how to implement disableManipulation (), so that when you click on the keyboard (inside the text field), only the default behavior (and not image manipulation) occurs
javascript input css keyboard
user1499220
source share