For this, i have implemented a virtual keyboard with a modified layout and commands,
one of which is an end command to signify that the user is finished typing.
how ever there are some instances where there isnt a post button (Facebook status commenting for example) so in order to post the event, "Enter" must be pressed.
I have tried doing this as so:
self.VKI_target.focus();
var retPress = document.createEvent("KeyboardEvent");
retPress.initKeyboardEvent("keypress", true, true, null, false, false, false, false, KeyCode(13), 0);
self.VKI_target.dispatchEvent(retPress);
where self.VKI_target is ths input field,
but alas, its not working or i wouldnt be posting it here.
any idea's?

New Topic/Question
Reply



MultiQuote


|