Niranjan Rao
2013-01-21 01:38:54 UTC
Greetings,
I would like to do something similar to
http://stackoverflow.com/questions/6796191/how-to-send-key-events-to-webkit-webview-control
or similar to copied answer from stack overflow question. I could see
the handlers for receiving events, but could not see anything that can
emit the events. How can I achieve this?
event = gtk.gdk.Event(gtk.gdk.KEY_PRESS)
event.keyval = gtk.keysyms.Return
event.time = 0
browser.emit('key-press-event', event)
Regards,
Niranjan
I would like to do something similar to
http://stackoverflow.com/questions/6796191/how-to-send-key-events-to-webkit-webview-control
or similar to copied answer from stack overflow question. I could see
the handlers for receiving events, but could not see anything that can
emit the events. How can I achieve this?
event = gtk.gdk.Event(gtk.gdk.KEY_PRESS)
event.keyval = gtk.keysyms.Return
event.time = 0
browser.emit('key-press-event', event)
Regards,
Niranjan