Questions tagged [autofocus]
456 questions
0
votes
0 answers
How to set the focus to the first input element in an HTML form on IOS?
I would like to use my web app with is developed in HTML/PHP on my iPad but I need to have the first input element to be selected in order for my barcode scanner to fill in.
On other device this is easily done with the autofocus attribute within…
0
votes
1 answer
Angular2 recursive component - set input autofocus
I'm creating a tree view similar to workflowy (for practice mostly), and this simple version is working but I can't figure out how to set the input focus when a new component is added.
I've tried adding the autofocus property on the input and using…

Michael B
- 153
- 4
- 15
0
votes
1 answer
CellEdit event fires when press tab button
My problem is that when I press tab button while editing datatable , cells of datatable are closed and CellEdit event fires more and more.
It force me to press left click any ware in the screen to prevent firing cell edit event.
on cell method I do…

Amr Nady
- 1
- 1
- 3
0
votes
1 answer
Is it possible to autofocus while using the trix gem with simple form on rails?
I'm trying to make the form autofocus on the editor when the page opens, to no avail. This is what the code looks like currently:
.row
.col-md-12= f.input :note, as: :trix_editor
Adding autofocus: true doesn't change the focus when I load the…

boyd
- 331
- 3
- 8
0
votes
1 answer
Android studio Camera Access on Samsung galaxy s7, Image blurry
In my app I open the camera for the user to take a picture of a text. Unfortunately the autofocus does not work at all and the picture is very blurry on an s7. I don't really understand the code either as I just copied it. Please find below the…

Christopher H
- 1
- 1
0
votes
1 answer
Can't enable autofocus in search form
I made a div for a search field and used a JS code to make it appear from the top by clicking on an icon in the navbar. I would like to enable autofocus in the input, but it is not working. I'm using Bootstrap 4. Here is the code I used:
HTML:

Rodrigo Grigoletti
- 43
- 1
- 4
0
votes
1 answer
React-Bootstrap input focused but cannot type
The issue I'm struggling with is that whenever I click on the budget-glyph-clear I still want to be able to be focused (which I am) to the input field and type in it. I get to see the input className correspond to the formControlDisplayStyle style…

fasaas
- 592
- 1
- 6
- 23
0
votes
0 answers
Camera code crashing on L.G G6 in Play store pre launch reports
i have an a simple app that takes a picture for sending it over to a server. The app works fine and all, but for some strange and unknown reasons it always crashes on LG-G6 devices in testing by google.
The pre launch report crash logs always…

Umair
- 400
- 5
- 19
0
votes
1 answer
not able to get highlighted drop down with focus
I am trying to get the dropdown with select tag highlighted upon page load. I have multiple classes in select tag I tried applying focus to all of them but it did not work. Can anyone please have a look at it?
div.cs-select select:focus {
…

Prasanna
- 79
- 2
- 11
0
votes
1 answer
onAutoFocus not called in android camera
I have set the focus mode as FOCUS_MODE_AUTO.
camParameters.setFocusMode(Camera.Parameters.FOCUS_MODE_AUTO);
cameraInstance.setParameters(camParameters);
Then I have started the preview.
cameraInstance.startPreview();
After that I am calling the…
0
votes
2 answers
Unable to focus input field in ionic2
In my snippet i have tried to set focus for first input text field. But when the page loaded it gets focused and lose the focus suddenly & closes the keyboard.
Can anyone please tell me to achieve this.

Mathankumar
- 105
- 1
- 11
0
votes
1 answer
Focusing camera without touch interaction
Is it possible to set the focus area in an Android camera application without any touch interaction, but by coordinates, which are received via a Network?
UPDATE:
So far I tried the following code snippet:
public void doFocus(final Rect focusRect)…

Viktoria
- 533
- 2
- 7
- 24
0
votes
1 answer
How to hide ionic keyboard in Auto focus
I am using Ionic 3 and Angular 5. I have a text-area with Auto focus.
problem is, I do not want to show keyboard in auto focus. How can I hide keyboard in Auto focus.
Here is my code.
setTimeout(() => {
this.myInput.setFocus();
},1000);
This…

Amar Pandey
- 21
- 4
0
votes
2 answers
Focus when clicking on the button that opens the input
How do I focus on input, which is hidden first, but opens on the click of a button? The autofocus attribute only works the first time, and 'nativeElement' of undefined. On jQuery everything is simple, but I need to do without it.

Oleg Zinchenko
- 503
- 7
- 16
0
votes
2 answers
Php- input text box auto focus not working
I have two input tex boxes. I want them to be autofocus when the entry is done in the first text box then the autofocus should be shifted towards the other one. I have used this solution, but it's not working for me. My view is bellow.
Update

Moeez
- 494
- 9
- 55
- 147