Questions tagged [autofocus]
456 questions
16
votes
4 answers
Autofocus algorithm for USB microscope
I'm trying to design an auto-focus system for a low cost USB microscope. I have been developing the hardware side with a precision PAP motor that is able to adjust the focus knob in the microscope, and now I'm in the hard part.
I have been thinking…

SubniC
- 9,807
- 4
- 26
- 33
15
votes
4 answers
HTML5 autofocus = autoselect?
I'm using some HTML5 form features to progressively enhance the user experience of my web project. One in particular is autofocus, I'm wanting to use this in a modal (lightbox) dialog that allows users to enter tags. Existing tags could be…

Fer
- 4,116
- 16
- 59
- 102
15
votes
6 answers
Chrome Extension - first link is auto-focused in popup
How do I stop my Google Chrome extension's default action to auto-focus the first link in my popup.html? I know I could probably do some roundabout hack with JS or change the :focus CSS, but I think this is throwing off something else I'm trying to…

Ryan Grush
- 2,076
- 3
- 37
- 64
15
votes
4 answers
Autofocus on input field when div slides down
I have is a hidden div. When the button is clicked, the div slides down with an input field. How do I make this input field autofocus as soon as the div slides down? Thanks.

Elmer Almeida
- 229
- 1
- 3
- 7
14
votes
2 answers
How to add autofocus to AVCaptureSession? SWIFT
I'm using AVFoundation to recognize text and perform OCR. How do I add autofocus? I don't want to have the yellow square thing when user taps the screen, I just want it to automatically focus on the object, a credit card for example.
Here is my…

mawnch
- 385
- 2
- 4
- 13
13
votes
3 answers
Unable to remove Autofocus in ui-dialog
The first element in my jQuery UI Dialog is an input, which when selected opens a datepicker...
How can I disable this input from being selected first?

Josh
- 605
- 2
- 8
- 16
13
votes
4 answers
React + modal: input field auto focus
I'm using React and Ant Design.
I have a popover with a button. When the user clicks the button, it shows the modal with an input field.
Problem
When I click the Show Modal Button auto focus is not working and also popover is not hiding
I tried with…

Maria Jeysingh Anbu
- 3,164
- 3
- 34
- 55
13
votes
3 answers
AngularJS - input autofocus with ng-if not working
When I surround my input with ng-if, after hide and show the autofocus attribute does not take effect:
Here is the code: