Questions tagged [focusmanager]
63 questions
1
vote
0 answers
How to clearFocus from TexttFields when scrolling Column on Compose?
I have a column, that contain few TextFields.
This column is bigger than screen of the device, so it's scrollable.
I want to ClearFocus for TextFields when user scrolles screen.
I came up with such solution:
Created scroll state and added it to my…

Aleksey Parokq
- 33
- 2
1
vote
1 answer
Flex 4 focus multiple UIComponents
I'm currently coding a Floorplan editor with Flex 4.
I have a Floorplan Grid that extends the spark Group class. This Floorplan Grid will contain objects that extend the UIComponent class. I want the user to be able to select multiple objects on…
user2385136
1
vote
2 answers
Binding FocusedElement in HierarchicalDataTemplate
I am trying to focus a control within a HierarchicalDataTemplate. Unfortunately, my attempt to bind to a control within the template is failing. Here is my code:

Cameron Peters
- 2,502
- 2
- 27
- 34
1
vote
2 answers
How can i raise DataGrid.LostFocus on RibbonButton.Click?
The following code uses a ToolBar and correctly causes DataGrid.LostFocus (there by committing any uncomitted row-edits before the command is executed);
1
vote
2 answers
Unable to set focus of an element
I have an Expander that its content consists of a StackPanel that contains several elements one of whom is a TextBox.
I want, that when the Expander expands that TextBox should gain keyboard focus, how do I do this?
I tried:
Private Sub…

Shimmy Weitzhandler
- 101,809
- 122
- 424
- 632
1
vote
1 answer
Actionscript 3.0 simultaneous multiple textarea
We are developing an AIR application for a huge touch table (110-inch, with 40 simultaneous touch points) that should allow multiple users to collaborate during a meeting by exchanging documents, contacts, notes etc. We are using: actionscript 3,…

gpar
- 13
- 2
1
vote
1 answer
WPF Find new focus control in PreviewLostKeyboardFocus
Is there a way to find the new focused control in the PreviewLostKeyboardFocus handler? For example, I have a textbox control with the PreviewLostKeyboardFocus event and I clicked on another control. Is there a way to find out what the new control…

Ming
- 141
- 9
1
vote
2 answers
Is there a focus handler in javafx
In swing is a FocusManager available to get notified if the focus changes.
FocusManager.getCurrentManager().addPropertyChangeListener (...)
Is there an analogue way in javafx to get notified if the focus in the scenegraph changes?

markus falkhausen
- 73
- 1
- 6
1
vote
3 answers
Transfer cursor from one JTextField to another on Enter press?
I have one JTextField called Name and one JTextArea called Address. My requirement is when user has entered name in the JTextFieldand pressed Enter key the cursor should go to the next text area which is Address.
Currently one can move from one…

user2286075
- 7
- 1
- 2
1
vote
1 answer
Different flash Tab-Focus behavior in Firefox and Internet Explorer
In a minigame that is part of a larger flash game we show a number of editable textfields, about 10 rows with two textfields per row. Every row of two textfields is encapsulated in a class, and objects of that type are placed under each other so…

Simon Groenewolt
- 10,607
- 1
- 36
- 64
1
vote
1 answer
JLabel should not be able to receive focus.. but it does?
I'm working on a Swing application that uses the default Swing methods for handling focus. Focus isn't working as I'd expect.
In one case, I have a JTextField that I call .requestFocusInWindow() When the window is displayed a JLabel has focus…

Greg
- 430
- 1
- 5
- 17
0
votes
1 answer
give focus to datagrid after button is clicked
I have a button and a datagrid. They are located on the same window. I need to give focus to selected row after the button is clicked. Seems to be not as straightforward as I've thought.
So I've got a DataGridRow object. I call DataGridRow.Focus(),…

Bogdan Verbenets
- 25,686
- 13
- 66
- 119
0
votes
1 answer
setFocus in Flex
I'm Using following code in flex4 mxml That works fine.
How to use the same in Action script I mean creation complete event of an application without…

Santhosh Nayak
- 2,312
- 3
- 35
- 65
0
votes
1 answer
why does not focusManager work in Jetpack Compose?
I am trying move focus from user textfield to password textfield with imeAction onNext and focusDirection.down, but the focus is cleared when I press the next button of the keyboard.
UI image
I show the code here:
val focusManager =…

agmcoder
- 195
- 1
- 8
0
votes
1 answer
How to stop controls from losing keyboard focus after changing when IsFocusScope is set to true?
Here's some sample code to reproduce the problem :
…

Rachel
- 130,264
- 66
- 304
- 490