Questions tagged [keyboard-navigation]

126 questions
95
votes
6 answers

Setting tab order in WPF

How do I set tab ordering in WPF? I have an ItemsControl with some items expanded and some collapsed and would like to skip the collapsed ones when I'm tabbing. Any ideas?
Román
  • 1,943
  • 2
  • 18
  • 28
26
votes
3 answers

Is there a workaround to Safari's/Opera's bug that you can't tab through hyperlinks?

In IE, Firefox, Chrome and most Windows-based interfaces that I've used, the Tab key can be used to navigate from one form field or hyperlink to the next (e.g. "actionable" items) (note: I have not tested on other Operating Systems) However Safari…
scunliffe
  • 62,582
  • 25
  • 126
  • 161
20
votes
2 answers

TabIndex vs. KeyboardNavigation.TabIndex in WPF

What is the difference between TabIndex and KeyboardNavigation.TabIndex in WPF? When to use each?
Strider007
  • 4,615
  • 7
  • 25
  • 26
14
votes
6 answers

How can I prevent tabbing to a UserControl?

I have a custom Popup that overlays part of my screen. When it is open, I want to disable tabbing into the UserControl behind it. I do not want to use the IsEnabled property because I do not want to gray out all the controls. Is there another…
Rachel
  • 130,264
  • 66
  • 304
  • 490
14
votes
1 answer

Difference between KeyboardNavigationMode Contained and Cycle?

Short question - what is the real difference put in easy and understandable words?.. Extracts from MSDN: Contained - Depending on the direction of the navigation, focus returns to the first or the last item when the end or the beginning of the…
Jefim
  • 3,017
  • 4
  • 32
  • 50
14
votes
2 answers

Enabling keyboard navigation in the Bootstrap dropdown-menu

Is it possible to navigate using the keyboard to the drop down menu using Tab, and navigate using the arrow keys to the sub elements of the drop down? Here is the code I have now:
JavaSheriff
  • 7,074
  • 20
  • 89
  • 159
11
votes
2 answers

Strange focus behavior for simple WPF ItemsControl

I'm seeing strange behavior when it comes to focus and keyboard navigation. In the example below I have a simple ItemsControl that has been templated so that it presents a list of CheckBoxes bound to the ItemsSource.
jpierson
  • 16,435
  • 14
  • 105
  • 149
8
votes
0 answers

Draft-js: Losing cursor with non-editable entity components

I have an editor that is supposed to have entities with the props name, color, start, end. In the editor the text in positions denoted by start and end will be subsistuted by name, and it will be rendered by a custom component with…
jorgen
  • 3,425
  • 4
  • 31
  • 53
7
votes
1 answer

DataGrid tab navigation skip column

I have a datagrid with template columns in WPF. Couple of columns in the grid are readonly, others on focus become editable (instead of labels, textboxes, checkboxes and such appear). What I would like to achieve is that the readonly columns are…
Vladan Strigo
  • 551
  • 1
  • 7
  • 19
7
votes
3 answers

keyboard accessibility of hidden contents using css and html only

how can I make this snippet accessible?
user652649
7
votes
2 answers

What HTML elements are not tabbable even with tabindex?

Does anyone have a list of the HTML (HTML5) elements that are not tabbable, even if a tabindex is specified? (By tabbable, I mean that they can receive the focus through repeatedly pressing the "tab" key.) We know that there are those elements which…
Adam Burley
  • 5,551
  • 4
  • 51
  • 72
6
votes
2 answers

How can I set the TabIndex on a WPF Expander control?

In this example window, tabbing through goes from the first textbox, to the last textbox and then to the expander header.
Eclipse
  • 44,851
  • 20
  • 112
  • 171
6
votes
1 answer

How can I find an item in a WPF ListBox by typing?

Most list boxes allow you to find items within them by typing the first letters of the displayed text. If the typed letters match multiple items, then you can keep adding letters to narrow the search. I need to do this in a WPF ListBox. However,…
Drew Noakes
  • 300,895
  • 165
  • 679
  • 742
6
votes
2 answers

Conflicts between JAWS table navigation short keys and custom implemented navigation keys(i.e. arrow keys)

Conflicts between JAWS table navigation short keys and custom implemented navigation keys(i.e. arrow keys) I am trying to make an HTML table accessible using keyboard as well as readable using JAWS Screen reader. To make it keyboard accessible i am…
6
votes
2 answers

Is tabIndex: 0 in links considered a good practice in order to avoid href="javascript: void(0);"?

a href="javascript: void(0)" is considered a bad practice and I can't use href="#" in every case, so I'm thinking to add an empty a with tabIndex=0 in order to be accessible with keyboard. Is it considered a good practice? P.S. Bootstrap's…
Naele
  • 510
  • 2
  • 10
1
2 3
8 9