Adding input event blocking to widgets