Originally posted by **moklick** December 12, 2023
Hey! I am using shortcut for handling several user actions. I bind all handlers on ``. Now I need to filter some events. For example, if I am in an input field, I don't want to trigger the callback. Normally I would just look at the keyboard event and check if `event.target` is an input, but that doesn't work here, because it's always the window itself. Is there any way to find out the actual target or get the keyboard event? Basically like this: https://jsbin.com/rufusujati/4/edit?html,js,console,output
Discussed in https://github.com/vnphanquang/svelte-put/discussions/256