p:selectOneMenu没有得到标签键导航的重点 [英] p:selectOneMenu doesn't receive focus on tab key navigation

查看:162
本文介绍了p:selectOneMenu没有得到标签键导航的重点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个< p:inputText> 和< p:selectOneMenu> 彼此。当焦点在输入文本上时,我按Tab键以导航到通过键盘选择一个菜单,然后焦点丢失。我没有看到哪个组件是关注的。




$ b您需要使用< p:inputText>的 tabindex 属性。 < p:selectOneMenu> ,如文档


I have a form with <p:inputText> and <p:selectOneMenu> components next to each other. When the focus is on the input text and I press the tab key in order to navigate to select one menu by keyboard, then the focus is lost. I don't see which component is focused.

How can I get the focus on the select one menu when I tab into it?

解决方案

You need to use the tabindex property of <p:inputText> and <p:selectOneMenu>, as explained in the documentation.

这篇关于p:selectOneMenu没有得到标签键导航的重点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆