Support more API variants to enter/leave fullscreen (with input support)