Questions tagged [autofocus]
456 questions
10
votes
2 answers
HTML5 AutoFocus attribute causes Firefox to scroll to bottom of page
We have an HTML5 application () with Twitter Bootstrap and various other JavaScript libraries (including jQuery) - all running on their current versions.
The page contains a text input with the autofocus attribute set.

asafb
- 461
- 5
- 13
9
votes
3 answers
How to focus on input field loaded from component in Svelte?
After loading the component that has input filed inside it. How can I focus on that particular field?
TextField.svelte

Yousuf Iqbal Hashim
- 925
- 1
- 11
- 21
9
votes
2 answers
Focus (Autofocus) not working in camera (AVFoundation AVCaptureSession)
I am using standard AVFoundation classes to capture video and show preview (http://developer.apple.com/library/ios/#qa/qa1702/_index.html)
Here is my code:
- (void)setupCaptureSession {
NSError *error = nil;
[self setCaptureSession:…

woojtekr
- 285
- 1
- 5
- 16
9
votes
1 answer
Android camera2 api touch to focus example?
Hi I'm using camera2basic example to implement my camera2 application. I can't find any good example to implement touch to focus with camera2 api. Currently the code i'm using for touch to focus is this:
private void setFocusArea(MotionEvent…

Zaeem Adil
- 77
- 1
- 5
9
votes
1 answer
AVCaptureDeviceFormat 1080p 60 fps Autofocus issue
I noticed that AVCaptureDeviceFormat 1080p 60 fps on iPhone 6s does not supports focus pixels, so in low light conditions the camera continues to autofocus when moved. This creates an issue with video recording as focus hunting is an issue. However…

Deepak Sharma
- 5,577
- 7
- 55
- 131
9
votes
1 answer
How do I Focus a Camera in Windows Universal Apps?
I am working with the Windows Universal Sample for OCR located here:
https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/OCR/cs
Specifically the OcrCapturedImage.xaml.cs
It seems that the camera often becomes unfocused,…

Seth Kitchen
- 1,526
- 19
- 53
9
votes
3 answers
How to prevent NVDA setting focus automatically on last used HTML element?
We are implementing accessibility on our existing web applications. We work with Firefox and NVDA.
Little introduction on our web applications : Our web applications are forms with multiple steps (step 1, step 2 : those are different web pages).…

Mathieu G
- 405
- 5
- 18
8
votes
2 answers
Will focus be set to invisible form controls using HTML5 autofocus?
As the title states: Will focus still be set on form controls with autofocus="autofocus" even if they are hidden with display: none; or visibility: hidden;?

Ryan
- 21,437
- 7
- 25
- 28
8
votes
3 answers
ReactJS and autofocus
I have a react-bootstrap modal with an . I want to set the autofocus attribute on the
The following works fine, but shows a warning in the console
Warning: Invalid DOM property `autofocus`. Did…

Andrei Cioara
- 3,404
- 5
- 34
- 62
8
votes
2 answers
How to develop a Face recognition iPhone app?
I am trying to develop an iPhone for Face recognition/detection. In my app i want to make my iPhone camera should be auto focused and auto capture.
How to recognition the face from iPhone app?
It is possible to auto focus the face and auto capture…

Gopinath
- 5,392
- 21
- 64
- 97
7
votes
4 answers
Autofocus Attribute of HTML5 does not work only in FireFox when
Below is the form which i loaded via ajax. When i run the form page directly then autofocus on c_name works in firefox but when loaded with ajax it doesn't! It works fine with opera/safari/chrome though!
7
votes
2 answers
React autofocus input after enabling a disabled input
I'm trying to autofocus a text input (the input is enabled upon selecting a relevant radio option).
The autofocus works when toggling between options that will enable the text input. However, autofocus fails when switching from an option that…

r0hityadav
- 83
- 1
- 6
7
votes
6 answers
onfocus is not called when using the autofocus attribute on an input tag
In the following example, I get only one alert box. I read that the focus is put before the JavaScript code is executed. Is there a way to get this to work on?