focus

How to start a virtual keyboard without loosing focus in WinXP?

Hello, I need to start a virtual keyboard (namely click-n-type) from my application to allow user input in the active field. When the user focuses on an edit box in my application's window, the virtual keyboard pops out to allow input. However, I can't get this to work in one click. When I use the "start click-n-type.exe" the keyboard s...

Force focus on one element with an exception. (jQuery)

I have two input fields. I want to force the focus on #area no matter where the user clicks unless it is on #input. I've tried something like this, but since input is part of document, it does not work. $("#area").focus(); $(document).click(function() { $("#area").focus() }; $("#input").click(function() { $("#input").focus() }; Though...

Visual Studio: How to stop breakpoint hit from stealing focus?

When a breakpoint is hit in Visual Studio, it steals the focus from whatever other application the programmer is viewing/typing into at that moment. This can be very irritating since VS grabs any keyboard input the programmer was typing into the other application at that moment and takes that input as its own. What are the tricks you fo...

gotfocus() mdi child windows question (winforms)

I have a mdi and 3 child windows. The program start with an empty mdi. With a menu you can open each child window once. When i open for example 2 windows. And close the one on top. The one left(the window under the one i closed) should get focus. How can i manage this? why i need this? each childwindow has a event gotFocus. Depending ...

How to deactivate focus rects on one component in Swing/Nimbus

Hi everyone! For my current project, i'm using Swing and the Nimbus look and feel. The look and feel draws focus rects that look great on buttons, text fields and so on. Unfortunately, a focus rect is also drawn on any tab of a TabbedPane. How can i deactivate drawing the focus rect around those tabs? Thanks in advance, David ...

Delphi TPageControl not responding to clicks on tabs

I have an app with a TPageControl on the main form. The pagecontrol has several tabs. The app can be minimized to a tray icon. Sometimes after running minimized for a while, when I restore the main window (via a right-mouse click on the tray icon), the tab that was last displayed is displayed, but I can't select any other tabs! If I ...

jQuery siblings and $(this) blur and focus

I have a form with labels and input fields. When clicking into a field I want to style the field with CSS and display some information about the input requirements in a div under the label. The focus() and blur() events add the classes for styling the field just fine but trying to show/ hide the info divs triggers the methods on ALL fie...

Determine web browser selection/focus color from JS?

Is there any way, from Javascript, to determine either the system's selection color (the color it makes text that the user selected), or the system's focus color (the color that is added to the outside of a tab-focused link or form element)? ...

java textarea no focus

I have this applet and within that applet it's within a Borderlayout. Anyway, I'm using KeyEvents on the applet and I make sure the focus stays on THAT by using this.setFocusable( true ); ok, so i can move around using keyevents. However, if the user ACCIDENTLY clicks on the textarea... there is no more way to go back to the screen...

Java: keyboard shortcut

Hi I have a JFrame and some JButtons JLabels and a JTextfield I need to create a keyboard shortcut to when it pressed the JTextfield get focus How can I do this? Thanks ...

Issues with Android soft-keyboard interaction

I am designing an Android app and I'm having a couple of layout issues. I have a screen with 3 EditTexts on it in a row, and I would like for the 'next' key on the soft keyboard to cycle between the EditText fields. As for now, the 'next' key has no effect. Also, when the soft keyboard is displayed, it covers up the third of the EditT...

jQuery::when I use fadeIn() my page moves its focus!

Hello. I have a simple HTML page, and some javascript using the basic $(#element).fadeOut method from jQuery on mouseover event. I also use the $(#element).hide() method. But my page focus shifts up! Meaning: if I scroll down a bit, and mouseover the element (which toggles the script), script is executed well, but my scroller goes up i...

Determine whether webpage has foreground window focus/is active tab?

I'd like to be able to mute activity of my app if I can detect that the page is no longer focused. For instance, if the page is in a background tab or another app has focus, I'd like to disable a constantly polling script or switch modal notifications to the new HTML5 notifications API. Is there any way to get this with JS, and if so, w...

how to set the insert button as the default default for formview?

how to set the insert button as the default default for formview? i did this for input focus, but how to default insert button, i tried panel but it say type needs to be ibutton.!! ...

How to make a select field show list of options? - Javascript/jQuery

Hi folks, I'm trying to mimic focus on a select field. e.g. When a user gains focus on a select field, the select field shows the options in a drop down list. When using $('select').focus(), the options are not shown. Any help on this one guys? =) ...

Android: changing the pressed/focused ressource by code

Hello all, I am using some tweaks that allow the user to change the UI of my application with ressources from their SDCard. That's really easy and nothing special, I just use the "setImageDrawable" or "setImageBitmap". http://developer.android.com/reference/android/widget/ImageButton.html That's really cool and all my users are happy ...

MFC CTreeCtrl node (a ComboBox in this case) does not seem to lose focus in Windows 7

My application uses MFC CTreeCtrl. One of the nodes of the tree has a ComboBox control of DropDownList style. In Windows 7, if we were to select an option from the ComboBox dropdown and then click on another node of the tree, the new node gets highlighted but the focus remains with the CComboBox control! I don't see this behavior on Win...

JQuery lavalamp: Selecting focus/highlighting item within lavalamp when hyperlinks outside lavalamp bar are pressed

Hi I'm hoping someone can help me out with a jQuery lavalamp problem. I have the following - a menu bar using lavalamp. - a div where content is loaded into when link on menu bar is clicked - in my content div I have some links that link to the same pages as in the menu bar The menu bar itself, looks and works great. However I wan't t...

Sometimes in Safari the first click isn't sent to the popup

I used different methods including "onclick" and jquery. http://sky-walker.net/temp/test.htm On Safari (for Windows at least), the first click after a popup appears (alert, prompt or confirm) isn't handled by the popup... e.g. in my test trigger a popup then hover or click on the checkbox... the first click doesn't register with the "o...

How do i focus a input type="text" when my id changes in page url ?

How do i focus a input type="text" automatic when my id changes in page url ? For example: http://mysite.php?id=2 I want to focus the mouse on my type="text" when my PHP IF statement is met without using buttons. <form> <input type="text"> </form> It should go something like: php IF (condition) { focus the mouse to input type="text" ...