Re: [PATCH] Don't let TUI focus on locator

Simon Marchi
2020-09-23T19:57:22Z

On 2020-09-23 3:50 p.m., Tom Tromey wrote:
> Simon> Instead of hard-coding here which windows can receive focus, how about
> Simon> having a tui_win_info virtual method "is_focusable", where the default
> Simon> implementation returns true, and tui_locator_window's implementation
> Simon> returns false? The code in tui_next_win / tui_prev_win would return the
> Simon> next / prev focusable window.
>
> Let me know what you think of this.

That looks good to me, thanks!

I've never looked at the TUI tests but... how hard would it be to write
a test for this?

Simon