octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #54942] implement uicontrol focusing behavior


From: Guillaume
Subject: [Octave-bug-tracker] [bug #54942] implement uicontrol focusing behavior
Date: Tue, 6 Nov 2018 05:53:07 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Follow-up Comment #10, bug #54942 (project octave):

There seems to be a difference of behavior with Matlab concerning the focus:
when created, a uicontrol doesn't seem to get focus automatically.

If I run the following in Matlab:


h = figure;
uicontrol(h,'callback','disp(''callback'')');


the button doesn't show any visual cue it has focus and pressing the space or
return key doesn't trigger the callback. If one clicks on the button then the
callback is executed and the button now has the focus (and callback is
triggered if one presses the space bar). Focus is then lost if one clicks
anywhere else on the figure.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?54942>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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