Switching windows in Linux/Firefox loses keyboard focus. Workarounds?

Hi,
I've been stumbling on an issue in which an applet gets into a state where it can receive mouse events but not keyboard events. This state occurs some of the time when switching from a non-modal dialog to the applet.
I've witnessed this behavior on:
Linux (fc8), Firefox 3.0.10, Java plug-in 1.6.0_13, Gnome 2.20.3
Sun Solaris (5.10), Firefox 3.0.8, Java plug-in 1.6.0_12, Sun Java Desktop System or CDE
I can not reproduce this behavior using appletviewer, nor can I reproduce it on the Mac (Opera/Firefox/Safari), nor on Windows (Firefox/IE).
I've crafted some code that shows the behavior:
FocusApplet.java:
import javax.swing.JApplet;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.event.*;
import java.beans.*;
public class FocusApplet extends JApplet {
  JTextArea infoText;
    Object activeWindow;
    Object focusOwner;
    Object permanentFocusOwner;
       Applet contains two components.
       NORTH: Text field
       CENTER: Info text
       The info text is updated whenever the following
       KeyboardFocusManager properties change:
          activeWindow
       focusOwner
       permanentFocusOwner
  public void init(){
      JTextField tf = new JTextField("Type here");
      infoText = new JTextArea();
      infoText.setEditable(false);
      infoText.setLineWrap(true);
      infoText.setWrapStyleWord(true);
      infoText.setBorder(new EtchedBorder());
      this.add(infoText, BorderLayout.CENTER);
      this.add(tf, BorderLayout.NORTH);
      KeyboardFocusManager focusManager =
       KeyboardFocusManager.getCurrentKeyboardFocusManager();
      activeWindow=focusManager.getActiveWindow();
      permanentFocusOwner=focusManager.getPermanentFocusOwner() ;
      focusOwner=focusManager.getFocusOwner() ;
      updateText();
      focusManager.addPropertyChangeListener(
       new PropertyChangeListener() {
         public void propertyChange(PropertyChangeEvent e) {
          String prop = e.getPropertyName();
          if ("focusOwner".equals(prop)) {
              focusOwner = e.getNewValue();
              updateText();
          } else if ("permanentFocusOwner".equals(prop)) {
              permanentFocusOwner = e.getNewValue();
              updateText();
          } else if ("activeWindow".equals(prop)) {
              activeWindow = e.getNewValue();
              updateText();
      // Create non-modal dialog
      JDialog jdl = new JDialog((Frame)null,"Extra dialog",
                    false/*modal*/);
      jdl.setSize (300,550);
      jdl.setVisible(true);
    public void updateText() {
     infoText.setText("Active window: "+getName(activeWindow)+
          "\nFocus owner: "+getName(focusOwner)+
        "\nPermanent focus owner: "+getName(permanentFocusOwner));
    public String getName(Object obj) {
     return (obj==null) ? "null" : obj.getClass().getName();
}Applet HTML:
<applet code="FocusApplet.class" width="400" height="400"></applet>When I run this applet, I can click on the text field ("Type here") and enter text. Then, I switch between the empty dialog box and the applet using the window manager. (I.e., clicking on the dialog, then clicking on the applet.) Sometimes I see the following Keyboard Focus settings when I bring the applet to the front:
Active window: sun.plugin.viewer.frame.XNetscapeEmbeddedFrame
Focus owner: javax.swing.JTextField
Permanent focus owner: javax.swing.JTextField
In this case, clicking on the text field will allows the user to edit text. Good! However, 10%-50% of the time I get the following settings after I bring the applet to the front:
Active window: null
Focus owner: null
Permanent focus owner: javax.swing.JTextField
In this case, I can click on the applet, and I can highlight text in the text field, but I can not edit the text. (No carat appears. Bad!) Since there is no keyboard focus owner, the applet appears non-responsive.
I have a few questions:
1. Is this a Java plug-in bug? A Firefox bug? Who do I file a bug with, assuming there's not something I'm missing?
2. Can anyone suggest a workaround?
Thanks,
-David-

I noticed the problem too. Is there any fix or workaround? Friends using Windows say that all is ok.
Linux x86_64 (Gentoo), Firefox 3.5.1, jre 1.6.0.15.

Similar Messages

  • My MacBook Pro Retina's Bluetooth chipset unknown/odd login message on the login screen states Login Window Authentication Login window Name edit text has keyboard focus. In addition, the login screen is not remembering me

    I have been experiencing several issues with my MacBook Pro Retina mid 2012. My MBPR is scheduled to go into the depot. However, I am wondering if anyone may be able to shed light on a few issues as this is the third "official" time my MBPR is going back for service ("one depot" trip; "one authorized" dealer; several in-store visits).
    My Bluetooth is stating that the Bluetooth Chipset is Unknown (0). I also have had Bluetooth Preferences mysteriously change on me. In addition, while Bluetooth is off there are two serial modems turning on. I have turned them off, but they continue to pop up.
    In addition, when I log in, my MBPR is not remembering me and my login name is not appearing on the slate-gray screen. The name and password are blank and the following message appears in the lower left hand corner. "login window authentication login window Name edit text has keyboard focus."  As a side note, I am the only user. The login issue is a recent occurrence as we just totally wiped it again via a Command + R, and I don't believe I have an accessibility setting set to anything that would cause this, but wanted to check.
    Should I be concerned here? Has anyone else had issues like this? I don't want to worry if I don't have to. I have had so many issues over the course of nine months. 5-6 wipes. Airport card replaced and I am about to pull my hair out if my MBPR doesn't come back worldly like clock work this time. I just can't send my days trying to get a $2300 product to work for me any longer. No idea what is wrong with it, but it is driving me insane. Cross your fingers for me and any guidance you have or thoughts would be welcomed. Thank you. EMM

    A few more issues...
    In Console, the following is greyed out:
    User and Diagnostic reports
    Com.apple.launchd.peruser.0
    Com.apple.launchd.peruser.88
    Com.apple.launchd.peruser.89
    Com.apple.launchd.peruser.92
    Com.apple.launchd.peruser.97
    Com.apple.launchd.peruser.200
    Com.apple.launchd.peruser.201
    Com.apple.launchd.peruser.202
    Com.apple.launchd.peruser.212
    *[user logs are accessible]
    Krb5kdc
    Radius
    My guest files are locked, but again I am the administrator of MBPR.
    I am worried about a keystroke logged or at least, trying to rule it out.
    Also:
    Mdworker32(225) [and other mdworker numbers] are sandboxing; stating deny Mach-lookup
    Com.apple.Powermanagement.control, etc. long attachment with those files with version: ??? (???).
    Postinstall: removing applications/Microsoft Office 2011/Microsoft Outlook.app
    WARNINGS in Console include:
    [NSImage compositeToPoint:fromRect:operation:fraction:] is deprecated in MacOSX 19.8 and later. Please use -[NSImage drawAtPoint:fromRect:operation:fraction] instead.
    There are a ton of other warnings. Before I go through this again, can someone tell me if this is normal (all of it -- above too); or if these are symptoms is a keystroke logger or hardware issues? 
    I ask because originally, when my computer went in for diagnostics (more than once), Apple stated the hardware was fine (other than Airport Card -- finally). However, if I've done 5-6 total wipes; created new users; do not have sharing set-up; have not played around in Terminal; and am up-to-date with versions -- and various issues KEEP COMING BACK -- I am left wondering if a keystroke logger would be possible here?!? I thought maybe a faulty logic board, but why would diagnostics be okay, then? Not trying to be hyperbole, just desperate.
    Please help me rule keystroke logger out or at least, tell me so I know, so I can take appropriate action. If you think it could be the logic board with symptoms above, that would be a great too.
    All I want to do is use the computer as intended, but I can't seem to get a real answer, so after nine months -- I am turning to the communities to see if anyone -- anyone at all -- can help. The last thing I can do is have the MBPR come back from the depot and the same thing occur. Any guidance or advice would be so gratefully appreciated.

  • Illustrator CS6 loses keyboard focus when using an extension panel

    OS10.8.2 CS6. When clicking a button on any extension panel (even supplied Kuler), it seems that Illustrator can't get keyboard focus until something else on the screen is clicked. Anyone know a way to fix this? I need to be able to use the keyboard to copy or delete a selected object right after running script....
    Tried running a javascript inline with app.activate() command. Didn't work. Help!!!!

    I noticed the problem too. Is there any fix or workaround? Friends using Windows say that all is ok.
    Linux x86_64 (Gentoo), Firefox 3.5.1, jre 1.6.0.15.

  • JPanel loses keyboard focus

    Ok, i have a JTextField which is initially disabled. A JPanel draws some stuff and receives keyboard input. When i enable the textfield, type some stuff, then press Esc (which disables it), i cant get the keyboard focus back on the JPanel. Here is an example:
    (you can move the red circle before you enable the textfield, after you disable it, you cant move it anymore).
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.event.*;
    import java.util.Vector;
    public class example extends JPanel implements ActionListener,Runnable {
        JFrame frame;
        JMenuBar menubar;
        JMenu m_file;
        JMenuItem mi_open,mi_close;
        JPanel canvas,northpanel;
        JTextField textfield;
        Image canvasimg;
        Thread thread=new Thread(this);
        private Image dbImage;     // for flickering
         private Graphics dbg;     // for flickering
         int x1=400,y1=200;
        public example() {
            frame = new JFrame("Example");                         // window
            frame.setLayout(null);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setPreferredSize(new Dimension(1000,700));
            frame.setLayout(new BorderLayout());
            northpanel=new JPanel();
            northpanel.setLayout(null);
            northpanel.setPreferredSize(new Dimension(1000,20));     northpanel.setLocation(0,0);
            menubar=new JMenuBar();
            m_file=new JMenu("File");   
            mi_open=new JMenuItem("Open");
            mi_close=new JMenuItem("Close");
            m_file.add(mi_open);
            m_file.add(mi_close);   
            m_file.getPopupMenu().setLightWeightPopupEnabled(false);   
            menubar.add(m_file);
            northpanel.add(menubar);
            menubar.setLocation(0,0);     menubar.setSize(80,20);
            textfield=new JTextField();
            northpanel.add(textfield);
            textfield.setSize(200,20);     textfield.setLocation(500,0);   
            textfield.setEnabled(false);
            frame.add(northpanel,BorderLayout.NORTH);
            canvas=new JPanel();
            canvas.setLayout(null);
            canvas.setSize(1000,600);
            canvas.setBackground(Color.white);
             frame.add(canvas,BorderLayout.CENTER);      
            frame.pack();
            frame.setVisible(true);       
            thread.start();                                   // start the thread
            textfield.addMouseListener(new MouseAdapter(){
                    public void mousePressed(MouseEvent e){
                         textfield.setEnabled(true);
               textfield.addKeyListener(new KeyAdapter() {
                 public void keyPressed(KeyEvent e){
                      int key=e.getKeyCode();
                      if(key==27){     // esc
                           textfield.setEnabled(false); 
                           canvas.setEnabled(true);                // not working
                           canvas.requestFocus();
                           canvas.requestFocusInWindow();
               frame.addKeyListener(new KeyAdapter() {
                 public void keyPressed(KeyEvent e){                   
                      int key=e.getKeyCode();
                      if(key==37){ //left
                           x1-=5;
                      if(key==38){ //up
                           y1-=5;
                      if(key==39){ //right
                           x1+=5;
                      if(key==40){ //down
                           y1+=5;
        // Create the GUI and show it. 
        private static void createAndShowGUI() {
            JFrame.setDefaultLookAndFeelDecorated(true);
            example ex = new example();
        public void run(){
             while(true){
                  try{
                       if(canvasimg==null)repaint();                   
                       Graphics g=canvas.getGraphics();
                       update(g);
                       thread.sleep(30);                                             // 1 sec
                  }      catch(InterruptedException ex){}
        // ActionPerformed handles button and menu events
        public void actionPerformed(ActionEvent e){              
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
        public void update (Graphics g){          // get rid of flicker
              if (dbImage == null){
                   dbImage = canvas.createImage (canvas.getSize().width, canvas.getSize().height);
                   dbg = dbImage.getGraphics ();
              dbg.setColor (canvas.getBackground ());
              dbg.fillRect (0, 0, this.getSize().width, this.getSize().height);
              dbg.setColor (canvas.getForeground());
              paint (dbg);
              g.drawImage (dbImage, 0, 0, this);
         public void paint(Graphics g){
              g.drawImage(canvasimg,0,0,this);          
              g.setColor(Color.red);
             g.fillOval(x1,y1,10,10);
        public void repaint(){     
             if(canvas!=null && canvasimg==null)canvasimg=canvas.createImage(1000,670);
             if(canvasimg==null)return;
             Graphics g=canvasimg.getGraphics();
             if(g==null)return;
             g.setColor(Color.white);
             g.fillRect(0,0,1000,600);
    }  

    OK great guru since you're so damn confident that you're doing everything right, find out for yourself why this works and yours doesn't.
    I could list a few dozen things wrong with your code, but I'd be wasting my keystrokes.import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.event.KeyAdapter;
    import java.awt.event.KeyEvent;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import javax.swing.JFrame;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    import javax.swing.JPanel;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    public class TextFieldDisableNoProblem extends JPanel {
       JPanel northPanel;
       JMenuBar menubar;
       JMenu m_file;
       JMenuItem mi_open,mi_close;
       JTextField textField;
       int x1 = 400;
       int y1 = 200;
       public TextFieldDisableNoProblem () {
          setBackground (Color.WHITE);
          addKeyListener (new KeyAdapter () {
             public void keyPressed (KeyEvent e){
                int key = e.getKeyCode ();
                switch (key) {
                   case KeyEvent.VK_LEFT:
                         x1 -= 5;
                         break;
                   case KeyEvent.VK_UP:
                         y1 -= 5;
                         break;
                   case KeyEvent.VK_RIGHT:
                         x1 += 5;
                         break;
                   case KeyEvent.VK_DOWN:
                         y1 += 5;
                         break;
                repaint ();
       void makeUI () {
          JFrame frame = new JFrame ("");
          frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
          frame.setSize (600, 500);
          frame.setLocationRelativeTo (null);
          menubar=new JMenuBar ();
          m_file=new JMenu ("File");
          mi_open=new JMenuItem ("Open");
          mi_close=new JMenuItem ("Close");
          m_file.add (mi_open);
          m_file.add (mi_close);
          menubar.add (m_file);
          frame.setJMenuBar (menubar);
          textField=new JTextField ();
          textField.setEnabled (false);
          textField.setBounds (200, 0, 200, 20);
          textField.addMouseListener (new MouseAdapter (){
             public void mousePressed (MouseEvent e){
                textField.setEnabled (true);
          textField.addKeyListener (new KeyAdapter () {
             public void keyPressed (KeyEvent e){
                int key = e.getKeyCode ();
                if(key == KeyEvent.VK_ESCAPE){
                   textField.setEnabled (false);
                   requestFocus ();
          northPanel=new JPanel ();
          northPanel.setLayout (null);
          northPanel.setPreferredSize (new Dimension (600,20));
          northPanel.add (textField);
          frame.add (northPanel,BorderLayout.NORTH);
          frame.add (this, BorderLayout.CENTER);
          frame.setVisible (true);
          requestFocus ();
       public void paintComponent (Graphics g) {
          super.paintComponent (g);
          g.setColor (Color.RED);
          g.fillOval (x1, y1, 10, 10);
       public static void main (String[] args) {
          SwingUtilities.invokeLater (new Runnable () {
             public void run () {
                JFrame.setDefaultLookAndFeelDecorated (true);
                new TextFieldDisableNoProblem ().makeUI ();
    }db

  • Google search loses keyboard focus

    Since iOS8 whenever I select Google (.co.uk) from favourites, as soon as I type the first letter of the search in Safari the keyboard drops out and closes, meaning I have to tap in the search box again to regain the keyboard. Happens almost every time unless I drag the screen down first. Either way it is annoying.
    Anyone else? Any workarounds apart from dragging the page down before starting to type? 
    Or I accept it may be a Google problem not keeping up with latest Safari, but is this a uk-only thing?  I cannot find any other complaints.
    With the first iteration of iOS8 the search box used to drop behind the keyboard, so this is an improvement I guess.
    (ipad mini, non retina.)

    THank you Bob. Forum search was useless!
    John Alders solution is...
    "I think I've cured it. Well I have for me.
    Just suddenly occurred to me it may be something to do with Google predictive searching.
    So I opened a new Google search and went straight to google settings (little cog top right in the Google window), then to Search Settings and changed the setting for predictive search (it doesn't seem to matter to what, as long as you change it), then scroll down and save your setting.
    Once you've changed the setting and saved it you can change it back to your preferred setting, and save again of course."
    I Suspect clearing cookies will clear the fix.

  • Outlook window getting the keyboard focus instead of user created Form Window during Outlook Startup

    This MAPILogonComplete method involves creating a Form Window to show "What's New" of a certain Addin version (DisplayWhatsNewDialog() in the code):
    private void _outlook_MAPILogonComplete() {
    _logger.Info("_outlook_MAPILogonComplete");
    try
    if (_timerForm != null)
    _timerForm.Timer.Stop();
    _timerForm.Timer.Dispose();
    catch (Exception ex2)
    _logger.Error(ex2.Message, ex2);
    try
    if (Globals.BJNSettings.showWhatsNew)
    Globals.BJNSettings.showWhatsNew = false;
    UIHelper.DisplayWhatsNewDialog(false);
    Ol.Inspector insp = null;
    if (_inspectors.Count > 0)
    for (int i = _inspectors.Count; i >= 1; i--)
    insp = _inspectors[i];
    WrapInspector(insp);
    insp = null;
    Ol.Explorer expl = null;
    if (_explorers.Count > 0)
    for (int i = _explorers.Count; i >= 1; i--)
    expl = _explorers[i];
    WrapExplorer(expl);
    expl = null;
    GetAddinsList();
    Thread logSystemInfoThread = new Thread(new ThreadStart(LogSystemInformation));
    logSystemInfoThread.TrySetApartmentState(ApartmentState.STA);
    logSystemInfoThread.IsBackground = true;
    logSystemInfoThread.Start();
    try
    Ol.NameSpace ns = _outlook.GetNamespace("MAPI");
    _calFolder = ns.GetDefaultFolder(Ol.OlDefaultFolders.olFolderCalendar) as Ol.Folder;
    _calFolder.BeforeItemMove += new Ol.MAPIFolderEvents_12_BeforeItemMoveEventHandler(_calFolder_BeforeItemMove);
    _delFolder = ns.GetDefaultFolder(Ol.OlDefaultFolders.olFolderDeletedItems) as Ol.Folder;
    Marshal.ReleaseComObject(ns);
    ns = null;
    catch (Exception ex)
    _logger.Error(ex.Message, ex);
    UIHelper.WriteDoNotDisableKeyToRegistry();
    Globals.AppointmentsToProcess = new List<string>();
    _timerForm.ProcessTimer.Interval = 3000;
    _timerForm.ProcessTimer.Start();
    catch (Exception ex)
    _logger.Error(ex.Message, ex);
    DisplayWhatsNewDialog() has this signature:
    public static void DisplayWhatsNewDialog(bool modal)
    try
    string defaultWhatsNewFile = Globals.BJN_APP_BASE_DIRECTORY + "WhatsNew.txt";
    string localISOLanguageName = Languages.GetTwoLetterISOLanguageName();
    string localizedWhatsNewFile = Languages.GetInstalledLocalizedFilePath(localISOLanguageName, "WhatsNew.txt");
    if (String.IsNullOrEmpty(localizedWhatsNewFile))
    localizedWhatsNewFile = defaultWhatsNewFile;
    if (File.Exists(localizedWhatsNewFile))
    BJNWhatsNew whatsNew = new BJNWhatsNew(localizedWhatsNewFile);
    if (modal)
    whatsNew.ShowDialog();
    whatsNew.Dispose();
    else
    whatsNew.TopMost = true;
    whatsNew.Show();
    whatsNew = null;
    catch (Exception ex)
    _logger.Error(ex.Message, ex);
    The problem is if the Window is made modal, it blocks the Outlook to launch and also goes back of the Outlook loading window (Whats New window will not be having keyboard focus). And if the Window is made non-modal (passing false to DisplayWhatsNewDialog()),
    Outlook launches properly and What's New window comes at the top but will not be having keyboard focus; instead the launched Outlook window will be having the keyboard focus. May anyone please suggest a way to make the What's New window to be always having
    the keyboard focus? Structure of form window class BJNWhatsNew is given below:
    public partial class BJNWhatsNew : Form
    private static ILog _logger = LogManager.GetLogger(typeof(BJNWhatsNew));
    public BJNWhatsNew(string whatsNewTextFileName)
    InitializeComponent();
    InitLabels();
    InitEventHandlers();
    InitWhatsNew(whatsNewTextFileName);
    private void InitLabels()
    try
    this.Text = Properties.Resources.bjn_version_info_caption;
    this.buttonClose.Text = Properties.Resources.ok_hotkey;
    this.labelBJNAddin.Text = Properties.Resources.bjn_version_ol_addin;
    this.labelVersion.Text = String.Format(Properties.Resources.version_format, Assembly.GetExecutingAssembly().GetName().Version.ToString(3));
    Assembly assembly = Assembly.GetExecutingAssembly();
    FileInfo fileInfo = new FileInfo(assembly.Location);
    DateTime buildDate = fileInfo.LastWriteTime;
    string formatString = "d MMM, yyyy";
    this.labelReleaseDate.Text = String.Format(Properties.Resources.bjn_version_release_date, buildDate.ToString(formatString));
    catch (Exception ex)
    _logger.Error(ex.Message, ex);
    private void InitEventHandlers()
    this.buttonClose.Click += new EventHandler(buttonClose_Click);
    private void InitWhatsNew(string whatsNewTextFileName)
    try
    if (File.Exists(whatsNewTextFileName))
    StreamReader sr = new StreamReader(whatsNewTextFileName);
    string whatsNew = sr.ReadToEnd();
    sr.Close();
    this.richTextBox1.Text = whatsNew;
    this.richTextBox1.SelectionLength = 0;
    this.buttonClose.Select();
    this.buttonClose.Focus();
    catch (Exception ex)
    _logger.Error(ex.Message, ex);
    void buttonClose_Click(object sender, EventArgs e)
    this.Close();

    Hello Prasad,
    The ShowDialog method will block the current thread. If you want to continue working with Outlook objects you need to use the Show method instead. The key fact is that both methods (Show and ShowDialog) accepts an instance of the IWin32Window interface
    which allows to specify the parent window handle. Specifying the parent window handle (Outlook Explorer window) to the Show method you can make your window shown on top of Outlook all the time.
    To get the HWND of an Outlook explorer  object (e.g. Application.ActiveExplorer), cast it to IOleWindow and call IOleWindow.GetWindow(). Also you may find the
    How to get the IWin32Window for Outlook
    article helpful.

  • Firefox loses window focus when I switch Windows user accounts

    If I have Firefox running in one Windows account and switch to another account (where I don't use Firefox) and then switch back to the account where Firefox is running, and then I open a new Firefox window, Firefox loses focus (in other words, I cannot use the new window unless I first bring it back into focus on the Desktop.) ...and, no, it is not a Windows issue, as other program behave a expected. It's just Firefox that does this. Highly annoying, btw.
    [Oh, and, mods, please reopen my previous thread, I wasn't done with it, thanks.]

    Threads are automatically locked after 6 months and that older thread was started Sunday January 19, 2014.
    This thread was archived:
    *[[/questions/983798]]
    We moderators can't reopen such an archived thread, but can add a link to a new thread if necessary.
    How do you open that new window?
    Is that by clicking the Firefox desktop shortcut or via the Firefox File menu or a toolbar button?

  • Firefox Loses Window Focus, Mouse Button profiles change to default

    I have a G700 mouse, which supports various hotkey profiles. For default profile, i have most buttons disabled. For games, i have game-specific hotkeys, and for firefox, i have firefox specific hotkeys (new tab, close tab, etc).
    There are 2 times that I notice this behavior:
    1) During regular browsing, clicking on various links causes firefox to lose focus, and the mouse software reverts from the "firefox" profile to the "default" profile. Interacting with firefox in any way does not fix this problem. the only way for firefox to become the default profile again is to click a different window or on the desktop, and then click back into firefox. The profile seems to be lost right after clicking a (javascript) link, though the number of links clicked is arbitrary. I cannot reproduce this issue with any fixed results (number of click, time period before losing focus, etc). But I can reproduce this issue reliably.
    When the mouse buttons stop working, the keyboard hotkey shortcuts DONT stop working. I dont have to re-select the firefox window to use keyboard shortcuts, I only have to do that if i want to use the mouse shortcut.
    2) If I am in private browsing mode, clicking links (specifically for websites that contain flash) causes the window which contains flash to move into the background and the non-private window becomes the foreground. Again, the mouse loses focus and the only way to regain focus is to manually click the window or to click away on a non-firefox object, then click the window. I believe this is a flashplayer based issue, though, and is unrelated to the profiles issue. When this happens, any interaction with a flash video also forces firefox's KEYBOARD hotkeys to not work. Ctrl+w and ctrl+t dont do anything, hitting escape does not give firefox control over keyboard hotkeys, and hitting "tab" only selects elements within the flash object. For youtube, it cycles through various clickable controls.
    EDIT: I have tried resetting the firefox profile and using a completely new profile, and i have also tried syncing profiles. This is a persistent problem.

    I'm using Firefox 23. This has been a problem since I got my mouse in September ish of 2012. As I stated, I've worked with logitech on this issue, they have no idea why it happens because only firefox exhibits this behavior. No other app on my computer does this and Firefox reset and clean profile do not do anything to solve the problem. Using logitech logging, I can produce a log and output of whenever the profile switches. I might be able to use logitech scripting to output debug information about what exactly causes it but that would take dev time I don't have.

  • Loss of keyboard focus in Java appl running under linux

    I have a small sample program that replicates my problem. When this program is run a window is created. If you select File->New another instance of the program window is created. Now if you try to go back and bring to front the first window, keyboard focus is not
    transferred when run under linux. You can only type in the second window. The expected behavior does happen in Windows.
    > uname -a
    Linux watson 2.6.20-1.2933.fc6 #1 SMP Mon Mar 19 11:38:26 EDT 2007 i686 i686 i386 GNU/Linux
    java -versionjava version "1.5.0_11"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
    Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)
    javac -versionjavac 1.5.0_11
    import java.awt.event.*;
    import javax.swing.*;
    class SwingWindow extends JFrame {
        SwingWindow() {
         super("SwingWindow");
         JMenuBar menuBar = new JMenuBar();     
            JMenu fileMenu = new JMenu("File");
            JMenuItem newItem = new JMenuItem("New");
            newItem.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent event) {
              SwingWindow.createAndShowGUI();
         fileMenu.add(newItem);
            menuBar.add(fileMenu);
            setJMenuBar(menuBar);
            setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);       
         JTextField text = new JTextField(200);
         getContentPane().add(text);
         pack();
         setSize(700, 275);
        public static void createAndShowGUI() {
            JFrame frame = new SwingWindow();
            frame.setVisible(true);
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }

    You can implement the FocusListener interface. When
    the first JFrame gains focus, call
    text.requestFocusInWindow(). I hope this helps.The call requestFocusInWindow is not helping, perhaps even making it worse.
    The problem seems to be that I am in the situation where the call
    KeyboardFocusManager.getCurrentKeyboardFocusManager().getPermanentFocusOwner()
    is returning the expected Component. The problem is that the KeyListener class that is registered with the Component is not being called when a key is being pressed.
    The issue is that I have a component that has the keyboard focus, but the KeyListener class
    is not responding.
    This seems to be a linux only problem which makes it only mysterious.

  • I pressed Windows-M to minimize all screens, then Firefox 6.0.1 (Win XP VM) started to open large number ( 70 in a few seconds) of new Firefox windows (stopped only when I killed the Firefox process with Task Manager). Firefox had no focus at that time.

    Windows XP 64-bits Virtual Machine, ServicePack 2, 4MB of RAM, dual processor running on a Windows 7 64-bits host machine, ServicePack 1, 8MB, 8-core processor.
    I have worked with that for half a year, no particular issues.
    I was working in other program in my VM (so Firefox had no focus) , then wanted to view my VM desktop, so I pressed Windows-M to minimize all windows in my VM. Exactly at that time Firefox 6.0 started to issue new empty Firefox windows, at a pace of about 4 or 5 per second. So I killed the firefox.exe process in my TaskManager to prevent my machine of running out of memory. Then I started Firefox again, without further issues so far.

    I'm a Chrome user by choice. I use Firefox for two reasons only:
    1) Speedbit video downloader
    2) A second browser to handle secondary Google and Facebook sign-ins.
    If I remove Speedbit, I lose 50% of my reason to use your browser at all.
    Speedbit and Firefox worked together just fine before version 19.
    PLEASE PROVIDE A PATCH. DON'T BLAME SPEEDBIT.
    Thank you.

  • Why does the keyboard focus keep switching to the menu bar?

    Does anyone else have the problem of Photoshop CS6 constantly setting the keyboard focus to the menu bar? This makes it difficult to use shortcuts.
    Typical examples: I want to switch to the Move tool, so I press V, but instead, the View menu drops down. Or I press T for the Type tool, but instead, the Filter menu drops down. This happens often and it's very annoying.
    This also happens in Premiere Pro CS6, and happens on both my Windows 7 and Windows 8.1 machines. Doesn't happen in other applications, and is not related to actually using a menu, i.e. if I choose something from a menu, then press V, Photoshop will often work correctly and activate the Move tool. This behavior seems to happen randomly.

    Alt doesn't really "unhide" the menu bar (speaking of Photoshop), but it's always been the introducer of keyboard operations for "keyboard accessbility" - i.e., operation of Windows applications without mouse.
    Alt causes little underlines to show up under the key characters of menu items, and prepares the system for the next character being typed to open a menu - so for example you press something like 'e' and the Edit menu pulls down.  Now you use an arrow key to move to the next item, or maybe a single character that's associated with one of the menu entries.
    Photoshop's goals for using modifier keys kind of conflict with this.  They've apparently tried to reach a balance where using the Alt key to modify some operation cancels the introduction of the next menu item. 
    But I don't think it's possible to be perfect at that, especially for example if the user presses Alt, decides not to do the operation he was thinking about doing (e.g., zooming out), then just releases the key.  Another factor might be the habits people get into for choosing tools.
    As a contrast, one person might not press the Alt key until they're sure they're going to do something with it (e.g., zoom out), and that same person might only choose tools from the Tools panel by clicking on them.  Another person might press the Alt key sometimes, but then stop before doing the operation it modifies.  That same person might be in the habit of choosing tools by their letter (e.g., E for eraser).  It's clear to see how the first person might never get into a condition where the menu introducer key (Alt) leaves them in a state where a menu opens inadvertently, while the latter might see it regularly.
    As far as why Photoshop might get into a mode where the menu introduction occurs when you HAVEN'T pressed the Alt key, I don't know; I certainly haven't seen that reported much if at all here on the forum.
    -Noel

  • Why does Linux Firefox look so ugly compared to Windows?

    My Windows Firefox, which I am using now, is simple and beautiful. The menus are nicely tucked away, tabs are shiny and sharp-edged (unlike the childish curved Chrome tabs) and help is at hand in the form of a big, orange "Firefox" button. Switch to GNU/Linux(Jolicloud) and GNOME, and the menus are back, the tabs are bubbly and the original design that went into Window's Firefox has all but been replaced with the default theme. Why?

    In the "Toolbars" section of the "View" menu you can turn off the menu bar to enable the Firefox button, though it's not yet as pretty as the Windows version.
    This link has some technical details on the work required to update Firefox's look and feel on Linux: https://bugzilla.mozilla.org/show_bug.cgi?id=513159

  • On our project site, with Firefox 4 and 5, buttons don't take the keyboard focus if you mouse-click on them. Is this a problem of our site?

    On a page like http://www.ori.uzh.ch/links.html, clicking a link opens a new tab, and after closing that tab, you can move to the next link with the tabulator key. On that site, it still works with Firefox 5. I also worked on our project site (password secured, sorry) with Firefox up to 3.6.18. But now, if I open a link with the mouse, close that tab again and press the tab key, the focus just goes to the first clickable button, as if I had not clicked any button previously. If I open a link by tab key and "enter", the keyboard focus is preserved on that button. But there are many many buttons on our pages, and they reload frequently.
    BTW I adjusted the system preferences, so that the keyboard focus moves between all controls. (see http://www.tipstrs.com/tip/1505/Tab-key-to-select-form-elements-in-Firefox-on-the-Mac). But I don't think the problem is related to that.

    I found out that our buttons are no links, but input tags, type="submit". I'll discuss the problem with our programmer.

  • HT4818 hey, I want to install windows on my mac, I have mac osx lion and I'm soon going to get mountain lion. If I use Boot camp to install windows do I need a windows disc, will i lose all my data, etc. If so how to I save them. Can I switch back to osx

    hey, I want to install windows on my mac, I have mac osx lion and I'm soon going to get mountain lion. If I use Boot camp to install windows do I need a windows disc, will i lose all my data, etc. If so how to I save them. Can I switch back to osx after I install windows. ( can I switch between Windows and OS X as many times as I want.) thanks for answering.
    Sebastian

    hey, I want to install windows on my mac, I have mac osx lion and I'm soon going to get mountain lion. If I use Boot camp to install windows do I need a windows disc, will i lose all my data, etc. If so how to I save them. Can I switch back to osx after I install windows. ( can I switch between Windows and OS X as many times as I want.) thanks for answering.
    Sebastian

  • Lately when using Firefox the mouse no longer works and no links or tabs can be selected. The only way to get the mouse to work is to switch windows with ctrl+tab

    The mouse is completely unavailable, not even able to select anything on the taskbar or start button.
    When this started happening I had to restart firefox, then I tried opening the task manager to see if anything was hogging resources and I found simply opening the task manager freed up the mouse, then I found simply using alt+tab to switch windows did it, then I discovered using alt+tab to cycle through the available windows straight back to firefox does it.

    See "Hang at exit":
    *http://kb.mozillazine.org/Firefox_hangs
    See "Firefox hangs when you quit it":
    *https://support.mozilla.org/kb/Firefox+hangs

Maybe you are looking for

  • Hooking up to a printer...

    Hey guys. I'm trying to hook up my ne Black Macbook to an HP printer connected to my dad's old Gateway computer. How do i connect to his network or to the printer? I've tried it several ways and I just haven't gotten it to work yet... Please help...

  • IPod is disabled.  How to fix?

    iPod 5tg generation reads 'ipod is disabled'.  Followed online instructions but to no avail.  Any other remedies available?

  • How to deploy a servlet in EBS

    I need to deploy a personal servlet in EBS, and I have no idea about where or how to do that. Please can some one help me? thinks a lot

  • Cannot boot OS X 10.4 from External Drive

    I have an external LaCie drive that has three partitions. I have 10.2.8 on one of the partitions, and I just installed 10.4 on another of the partitions. I am trying to boot from the partition with 10.4 on it, so I hold down "option" when the compute

  • Help me with my program...URGENT

    I hav 2 rite a proogrammm thaat calculatts the temperutare of the suun. I neeed 2 turne it in by 5pm today. i rote moste of it buut i neede sum peeps to hlep finis it: public class ThermoDynamicCalculator{ public void init(){ }pleez hurry!