octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave plot window input focus


From: Shai Ayal
Subject: Re: Octave plot window input focus
Date: Sun, 31 Jan 2010 15:42:37 +0200

On Sun, Jan 31, 2010 at 3:19 PM, Jaroslav Hajek <address@hidden> wrote:
>
> On Sun, Jan 31, 2010 at 7:26 AM, Michael D Godfrey
> <address@hidden> wrote:
> > I was checking on matlab behavior and noticed that
> > when a command that creates a plot window is
> > executed:
> >
> > In matlab, the plot window has focus, but keyboard input goes
> > to the command window without having to switch focus.
> >
> > In Octave, the plot window has focus, but keyboard input
> > does not go to the command window.  Focus has to be switched
> > to the command window for input.
> >
> > This has been true, at least on X11  Linux systems for many years.
> > But, it has always seemed to me that it would be much better if
> > input focus stayed with the command window.
> >
> > Do people agree that this change would be a good idea (not
> > just for matlab compatibility)?  And, if so, any ideas where to look in the
> > Octave code to implement the change?
> >
> > There are two possible changes:
> >
> > 1. Do just like matlab.
> >
> > 2. Keep focus with the command window so that it is more obvious that
> >    the window will accept keyboard input.
> >
> > Michael
> >
> >
>
> I always thought the focus stealing was a feature of gnuplot or the
> window manager. If it can be arranged, I'm very much for option 2.

I am not sure, but I also think that the window manager decides which
window gets the focus. However, the figure window can in principle
pass all keystrokes to octave (after all, it's running in the same
process).
Is there a mechanism for passing keystrokes to octave from within an
octave function?

Shai



reply via email to

[Prev in Thread] Current Thread [Next in Thread]