Document.addEventListener in titanium
Posted: Thu Jun 06, 2024 2:35 pm
Is it possible to add an event listener to the document in titanium?
example:
example:
- Code: Select all
document.addEventListener("keydown", function(event){
if(event.ctrlKey && event.key == "F"){
//do stuff
}
})