Re: Focus problem

  • From: tpgww@xxxxxxxxxxx
  • To: emelfm2@xxxxxxxxxxxxx
  • Date: Mon, 2 Jan 2006 08:14:21 +1100

Thanks Bernard,

>  1. Put the focus on the left pane.
>  2. Click on the right directory combo box and type a directory other
>     than the current shown.
>  3. Press ENTER.
> 
> => The right pane gets the keyboard focus (up/down work on the right
> pane now), but the left pane is still active. So if I press ENTER, the
> command is executed on the left pane instead of the right.
If you can't wait until the next release, then the behaviour can be fixed by 
applying this:

--- e2_command_line.c   2005-12-13 11:36:23.000000000 +1100
+++ e2_command_line.c   2006-01-02 07:28:32.000000000 +1100
@@ -319,5 +319,10 @@
 
        if (e2_option_bool_get ("dir-line-focus-after-activate"))
-               gtk_widget_grab_focus (pane_rt->focus_widget);
+       {
+               if (pane_rt == app.pane_other)
+                       e2_pane_activate_other ();
+               else
+                       gtk_widget_grab_focus (pane_rt->focus_widget);
+       }
 
        g_free (command);

OR simply turn off the panes config option "focus the pane after completing a 
directory entry"

Regards
Tom


-- 
Users can unsubscribe from the list by sending email to 
emelfm2-request@xxxxxxxxxxxxx with 'unsubscribe' in the subject field or by 
logging into the web interface.

Other related posts: