Hi,
I am just trying to cycle the focus between elements inside a particular element when the tab key is pressed. What I want to do is not to set focus to any element which is not a descendant of an element when tab is pressed from the last control inside the element. At that time the focus must be set to the first input element inside ...
I know this shouldn't be that hard, but I couldn't find the answer on Google.
I want to execute a piece of javascript that will clear the focus from whatever element it is on without knowing ahead of time which element the focus is on. It has to work on firefox 2 as well as more modern browsers.
Is there a good way to do this?
...
Hello StackOverflow community!
I'm currently working on my own jQuery plugin for inline-editing as those that already exist don't fit my needs.
Anyway, I'd like to give the user the following (boolean) options concerning the way editing is supposed to work:
submit_button
reset_on_blur
Let's say the user would like to have a submit ...
I'm implementing a custom control that inherits from Control. I want it to be focusable (it's a kind of list box).
In the constructor, I do
SetStyle(ControlStyles.Selectable, true);
I can now use Tab to navigate to the control.
However, when the control receives a mouse click, it does not automatically claim focus. I can work around...
Hi,
I have a list showing up when i click on button, the problem is that i want to hide the list whenever it loses focus i.e. user clicks anywhere on a page, but not on that list. How can i do this? Also, you can see how it should look at last.fm, where's list of profile settings (li.profileItem).
(ul.del li ul by default is display:none...
I'll try and be concise:
1) I have a dropdownlist with Autopostback set to TRUE
2) I have an UpdatePanel that contains a Label.
3) When the downdownlist selection is changed, I want to update the label.
Problem: Focus is lost on the dropdownlist, forcing the user to click on the dropdownlist to reset focus back to the control.
My "so...
Trying to create a custom cyclical horizontal manager which will work as follows. It will control several field buttons where the buttons will always be positioned so that the focused button will be in the middle of the screen. As it is a cyclical manager once the focus moves to the right or left button, it will move to the center of the...
I have a wxFrame that receives events. Whenever an event comes in, I want the frame to be brought to the foreground.
I'm currently using:
my_frame->SetFocus();
But that doesn't seem to work for minimized frames. How can I set the frame as the active window and bring it to the front?
Alternatively, is there a method that flashes the ...
Hey,
I've created a site with CSS that requires the :focus pseudo class. I change the 'filter' and 'background-image' effects when a textbox is selected (i.e. has focus). This works in Chrome/FF, but doesn't seem to work in IE8 (and, presumable, previous versions if IE). I tried to look for answers, and have tried to use :active - but ...
Hi,
I am having a problem after opening the notepad once I click the button "btnSearch".
The idea is that once I clicked the button 'btnSearch', the textbox 'txtSearch' should be 'focused' even after a process was initiated/opened outside the main window.
Here's my code:
private void btnSearch_Click(object sender, RoutedEventArg...
Hey guys,
Using jQuery, the following is not working in FF, but it is in IE
$(this).focus().select();
I looked around for this and found that you could use a timeout to get around this, but that is not something I want to do if I can avoid it. Does anyone know another way to do this and have it work in FF?
Metropolis
...
Hi,
In my application I have a frame, with toolbar (the toolbar contains some actions).
I want the toolbar to be visible only when the window is focused.
So, I registered a windowFocusListener on the window.
The problem is-
when the window is not focused and I click on the place where a tool bar action should be- the action is performed...
Is there a way to find out if Google chrome is in focus or out of focus? I'm creating an app which needs to know if the user is currently using the browser or not.
By tying the detection through the content script in a Google extension, I've tried using blur and focus but the problem is that clicking on the address bar also fires a blu...
Suppose I have a VFM full of both focusable and non-focusable fields. Since most of them are spread out far apart, the movement from one focused field to another is jerky at best, even with NullFields in between. In other words, it just sets the current y position to the next focused field without smoothly scrolling the screen.
What I ...
I have an application that has a splash screen shown before I create my main window. I want to avoid the main window stealing the focus when it gets created if the user has focused another application while the splash screen was shown.
My application's startup looks like this:
private void Application_Startup(object sender, StartupEven...
I've done a lot of searching on SO and google around this problem, but can't seem to find anything else to try.
I have a MainView (window) that contains a tab control. The tab control binds to an ObservableCollection of ChildViews (user controls). The MainView's ViewModel has a method that allows adding to the collection of ChildViews, ...
Is there any way to listen for keypress events in a parent page while the iframe has focus? Or, alternatively, is it possible to pull away the focus from the iframe?
Please note, the iframe is not within the same domain, so I cannot modify it's contents via javascript.
I've tried the following jquery in the parent page, thinking perhap...
Hi all,
I have a Direct2D window which paints fine when in focus; however, when focus moves to another window (same application or another), the entire window goes black. I pinned the issue down to the use of ID2D1HwndRenderTarget::Clear. This function is vital to my application as without it, painting becomes rather... weird.
Is there...
I don't understand, I have a toolbar with buttons bind to custom commands.
Also I have an expandable control docked to the left of window - kinda NavPanel.
(Devcomponents' NavigationPane to be exact)
Now, everytime when it's collapsed or expanded, buttons in the toolbar become disabled and stay like that till the focus changes.
Of c...
I'm running C# 2.0, and I've written an application with a DataGridView in virtualmode and a TreeView in the same form, but in different panels of a SplitContainer.
My application has a "find all" function that finds all instances of a certain string, and adds them as the child nodes to a new node to the TreeView (it's a tree view becau...