Questions tagged [lostfocus]

A phenomena of losing access from a control.

79 questions
182
votes
5 answers

How can I know when an EditText loses focus?

I need to catch when an EditText loses focus, I've searched other questions but I didn't find an answer. I used OnFocusChangeListener like this OnFocusChangeListener foco = new OnFocusChangeListener() { @Override public void…
japuentem
  • 2,117
  • 3
  • 14
  • 13
17
votes
0 answers

Android keyboard focus losts while going to another view by DPAD

We have 17 api, DPAD control and 4 edittexts in one layout for pin enter. When user try to open something which is locked in the app he faced with fragment where he should enter 4 digits pin. When view is opened we set programmatically view focus to…
12
votes
6 answers

How do you solve this LostFocus/LostKeyboardFocus issue?

Ok, I have a control that has an IsEditing property which for argument's sake has a default template that is normally a text block, but when IsEditing is true, it swaps in a textbox for in-place editing. Now when the control loses focus, if it's…
Mark A. Donohoe
  • 28,442
  • 25
  • 137
  • 286
10
votes
5 answers

Disable firing TextChanged event

I have textbox and I'm changing the text inside it when lostFocus is fired but that also fires up the textChanged event, which I'm handling but I don't want it to be fired in this one case, how can I disable it here? UPDATE: The idea with bool is…
Ms. Nobody
  • 1,219
  • 3
  • 14
  • 34
9
votes
1 answer

How do I make my WPF Context Menu go away when the user clicks outside the menu?

First, the standard info: VS2010 Ultimate Win7 Ultimate x64 WPF app The WPF context menu: The…
John
  • 163
  • 1
  • 9
8
votes
2 answers

How do I find out where the focus is going in my WPF application?

I have a search screen in my WPF application. The screen is implemented as a UserControl in a TabItem of a TabControl. When the user switches to the Search tab, I want the focus to go into one particular field. So I added a Loaded event handler to…
Tony Vitabile
  • 8,298
  • 15
  • 67
  • 123
8
votes
5 answers

lost focus of input text while keyboard appears - iOS PhoneGap Application

i have an issue while developing phone gap application on iOS 7 using cordova 2.7 with html input text. when i select input text the keyboard pops up. but can't type anything as the focus is lost. i have to select again to enter text. can anyone…
abduIntegral
  • 521
  • 4
  • 7
  • 21
7
votes
1 answer

Prevent LostFocus from being triggered when children elements lose focus

I have a User Control that has several children elements, including checkboxes and textboxes. I would like to trigger the LostFocus event for my User Control only when the focus is lost on the entire User Control (e.g. clicking a button outside of…
binncheol
  • 1,393
  • 4
  • 22
  • 38
5
votes
2 answers

How to hide ckeditor when we click outside of the editor?

Here is my code: