Search Posts

Category: keydown

Leave alone keydown events usable for focused descendants

I have a (home made) table with a few physical rows a many logical rows, which I want to scroll (also) using the keyboard. In case a descendant is focused which understands the key, I want the event to be handled by the descendant and to be ignored by my table. Maybe the code makes it clear: scroll.keydown = function(e) { if (e.shiftKey | e.controlKey | e.altKey) return; var isText = === “text”; var […]