[Solved] event.accepted stops JavaScript from processing the next line



  • I'm using the Keys.onPressed signal to process different key events. I read that once an event is processed you should set the event.accepted to true. When I do that nothing after that line of JavaScript gets processed. I even tried just logging the value of event.accepted and a similar thing happened. It printed out the value stored in event.accepted but stopped processing the JavaScript. I'm not sure if this is what is suppose to happen or if there is another way to stop the event from propagating. Please let me know if this is a bug or If i'm doing something wrong.

    Thanks,
    Tom



  • Please delete this... it turned out to be a bug in my code that made it look like event.accepted wasn't working properly.

    Thanks,
    Tom



  • It happens sometimes and its ok. We just tag it as solved :)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.