Top "Focus" questions

Focus indicates the component of the graphical user interface which is currently selected to receive input.

KeyBinding in UserControl doesn't work when TextBox has the focus

The following situation. I've got a UserControl with five keybindings. When the TextBox has the focus the keybindings of the …

wpf xaml mvvm focus inputbinding
How to remove focus from SearchView?

I want to remove focus and text from SearchView in onResume(). I tried searchView.clearFocus() but it is not working. …

android focus searchview
How can I listen to a TAB key pressed/typed in Java?

private void jTextField1KeyPressed(java.awt.event.KeyEvent evt) { //cant capture my TAB? System.out.print(evt.getKeyChar()); } What is …

java focus traversal keylistener keyevent
How do a get buttons not to take the focus?

I want my (ExtJS) toolbar buttons not to grab the focus on the web page when they are clicked, but …

javascript button extjs focus
Jquery: Hover/unhover combined with blur/focus

I've been looking through the questions, but i can't find exactly what i'm looking for.. I want to know how …

jquery focus hover mouseover blur
How to make element not lose focus when button is pressed?

I have a textarea in which I am inserting content at the location of the caret (thanks to Tim Down's …

javascript jquery html focus selection
Is there a way to take away focus in javafx?

I know that your can give focus to a node in javafx by doing node.requestFocus(); but is there a …

java javafx focus javafx-2 nodes
How to get selected text/caret position of an input that doesn't have focus?

Is it possible to (reliably) get the selected text/caret position in a input text box if that field doesn't …

javascript jquery focus position caret
How can I move the cursor to the end of the text (Delphi)?

This is my code to fill a TextBox using the SendMessage function: C := 'Hey there'; SendMessage(h1, WM_SETTEXT, 1, Integer(…

delphi focus cursor sendmessage
Show window in Qt without stealing focus

I'm using the Qt library to show a slideshow on the second monitor when the user isn't using the second …

c++ qt focus window-management active-window