Questions tagged [focusable]
77 questions
102
votes
4 answers
Difference between focusable and focusableInTouchMode?
I want to know the actual difference between them... When should each be used, how should each be used, and in which situations is each helpful?
Give some examples and explain them in detail.

Zar E Ahmer
- 33,936
- 20
- 234
- 300
14
votes
4 answers
How to set focus on first focusable element jQuery?
I've been working on a dropdown/popup menu, and I have it working great, with one exception; when you click on the link (or hit the enter key) to open the menu, focus is supposed to be set to the next element that can receive focus. So in this…

DeanH
- 339
- 2
- 8
- 23
14
votes
3 answers
Focusable EditText in the ListView and onItemClick
In each ListView item I have EditText.
When I set android:focusable="false" for EditText then onItemClick on the ListView item is working, but EditText doesn't get cursor when I click inside.
If I'll set android:focusable="true" for EditText, then…

Sviatoslav
- 1,301
- 2
- 17
- 42
8
votes
2 answers
Simulating a Tab Key Press using Plain JavaScript Supporting Shadow DOM
Note: Existing questions exists here and elsewhere but they are all jQuery specific and there is no canonical answer covering plain JavaScript, including support for web components.
I'd like to simulate a tab key press so that the focus is shifted…

Muhammad Rehan Saeed
- 35,627
- 39
- 202
- 311
8
votes
3 answers
SetFocusable method or Focusing Components Java
I came across this code:
public class Board extends JPanel implements ActionListener{
public Board() {
setFocusable(true);
}
}
What exactly does setFocusable(true) do to the JPanel object? What is the notion of a component being…

Nicholas
- 679
- 2
- 11
- 29
7
votes
0 answers
EditText calls onFocusChanged three times instead of once
I have to do a ListView that contains on each item an EditText. If the EditText receives focus, I have to display a dialog - the condition is strictly for when the EditText receives focus and not when is pressed because it can be selected even if it…

Cata
- 11,133
- 11
- 65
- 86
6
votes
2 answers
WPF how to make a listbox/listview unfocusable
I've been trying for a while to display some data in a listbox/listview that would be unfocusable (I mean not only the list, but also the items in it).
I tried with both types of list (listbox and listview), and I used their ItemTemplate and…

Antoine Jeanrichard
- 1,103
- 1
- 10
- 18
6
votes
1 answer
Jquery unsupported pseudo: focusable
I tried to run the following code :
focusables = container.find(":focusable"); where container is a div.
I get the error :
Syntax error, unrecognized expression: unsupported pseudo: focusable
I am using jquery-1.9.1.What is the reason? Is there…

user584263
- 375
- 5
- 18
5
votes
1 answer
Android ListView when Items are Focusable,disables clicks
I am using a ListView with custom adapter it simply has one TextView

Shardul
- 786
- 3
- 11
- 20
5
votes
1 answer
Handling click for a ClickableSpan with selectable text requires double click
I have a TextView in which every word is a ClickableSpan. When clicked, the word become bold and the dictionary definition of the word is shown in another TextView. The app works correctly until I make the text in the TextView selectable. When the…

Matt Robertson
- 2,928
- 5
- 34
- 62
5
votes
2 answers
Android EditText.setError not working in not focusable
How can I display a text error with setError in an EditText not focusable? It's important that users don't modify this EditText, it'll be modified for the application. Maybe I have another option different than focusable=false?
Now, I have…

Salva Triado
- 71
- 5
5
votes
6 answers
Temporary disable EditText
I want EditText to temporarily not gain foucs.
Scenario is : I have two EditTexts. Whenever any EditText's text is changed, I want another EditText to not to respond to user clicks until another predefined event occurs.
To achieve that I tried…

Geek
- 8,280
- 17
- 73
- 137
4
votes
5 answers
focusable row inside table android
i have in xml a ScrollView which includes one TableLayout.
My question is if it's possible to have a focusable row every time i click on it.
Here is my xml code:

Nikitas
- 649
- 4
- 9
- 18
4
votes
2 answers
How to setFocusable true after setting it to false?
here is my code:
mEditText.setOnKeyListener(new View.OnKeyListener() {
@Override
public boolean onKey(View view, int i, KeyEvent keyEvent) {
mEditText.setFocusable(false);
…

Ajay Chauhan
- 1,471
- 4
- 17
- 37
3
votes
1 answer
Grabbing all tabbable / focusable elements in a document
I am improving accessibility in a web-app.
I would like to cycle through all potentially tabbable / focusable elements
I note that jQuery has its own pseudo-selector, :tabbable but this isn't native.
I've never used jQuery much and I'm in no hurry…

Rounin
- 27,134
- 9
- 83
- 108