#132 Focus editor after execute in VTE

open
nobody
None
5
2008-04-03
2008-03-09
No

Hello,

after execution of an edited file the focus switches to the terminal window (VTE). It then eats almost all the keyboard shotcuts (Ctrl+PageDown/PageUp, Alt+letter, F5, ...) and if I accidently press one of those, it types garbage on the terminal. As a result, next attempt to execution fails because

"Could not execute the file in VTE because it probably contains a command"

Solution: After the executed program terminates, change the focus back to editor.

Enhancement_1: Terminal should not eat keyboard shortcuts considered "global".

Enhancement_2: If user want to execute program and "... VTE probably contains a command", clear the command line and execute.

Maybe not everyone wants such behaviour, but could you add an option for that?

Thank you
Jan Martinek

P.S. I have geany 0.13.

Discussion

  • Jan Martinek

    Jan Martinek - 2008-03-11

    Logged In: YES
    user_id=632836
    Originator: YES

    Oh no! By mistake, I had the "Override geany bindings" turned on and it was the reason why terminal grabbed all the keystrokes. So my previous post was not correct and the "Enhancement_1" proposal was useless, it is already done in geany, great!

    I still think that "After the executed program terminates, change the focus back to editor" would be a good idea. I tried to comment out the line gtk_widget_grab_focus(vc->vte); and I am quite happy with it now, but it is half-way ugly hack just for me (vte gets focus only when I deliberately click on it).

    But anyway, it showed up my previous post is now a bug report, sorry for that.

    Jan Martinek

     
  • Nick Treleaven

    Nick Treleaven - 2008-04-03

    Logged In: YES
    user_id=1268692
    Originator: NO

    Hi,
    I've renamed the summary to reflect this. This could be made an option, as some people might like the VTE to be focused so they can use Ctrl-Shift-PageUp to scroll up through the program's output.

     
  • Nick Treleaven

    Nick Treleaven - 2008-04-03
    • summary: editor looses focus after 'execute' --> Focus editor after execute in VTE
     
  • Date

    Date - 2009-03-31

    Also will be good if focus will automatically returns to editor window to the old place, when you close notes or terminal window.
    (Now, when you close notes window, focus goes to toolbar.)

     
  • Enrico Tröger

    Enrico Tröger - 2009-03-31

    @ comment 3 (date): fixed in SVN 3676, thanks for reporting.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks