Don't leave focus on/inside deselected tab, fixes #17287
Don't call evt.preventDefault() for plain "w" keypress, fixes #17358