[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54942] implement uicontrol focusing behavior
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #54942] implement uicontrol focusing behavior |
Date: |
Sun, 4 Nov 2018 13:01:03 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0 |
Update of bug #54942 (project octave):
Status: Patch Submitted => Patch Reviewed
_______________________________________________________
Follow-up Comment #3:
The patch seems on the right track.
What is this piece of code?
diff -r e3a2ef3dced9 -r 60b0988efb93 libgui/graphics/BaseControl.cc
--- a/libgui/graphics/BaseControl.cc Mon Feb 22 21:07:09 2016 +0100
+++ b/libgui/graphics/BaseControl.cc Sun Nov 04 00:12:22 2018 +0100
@@ -92,6 +92,9 @@
: Object (go, w), m_normalizedFont (false), m_keyPressHandlerDefined
(false)
{
init (w);
+ w->setFocus ();
+ if (w->hasFocus ())
+ printf ("Toto\n");
}
The printf looks like debugging code accidentally left in place.
Second question, maybe this is an issue in the implementation of a push
button, but I thought that if the button had the focus and I typed <RETURN>,
that the button would be activated. This doesn't seem to be the case for push
buttons, although it is for the buttons on a listdlg.
Sample test code:
close all
h = uicontrol ("String", "OK");
# Click on figure window
# type <RETURN>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54942>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54942] implement uicontrol focusing behavior, Rik, 2018/11/02
- [Octave-bug-tracker] [bug #54942] implement uicontrol focusing behavior, Guillaume, 2018/11/03
- [Octave-bug-tracker] [bug #54942] implement uicontrol focusing behavior, Pantxo Diribarne, 2018/11/03
- [Octave-bug-tracker] [bug #54942] implement uicontrol focusing behavior,
Rik <=
- [Octave-bug-tracker] [bug #54942] implement uicontrol focusing behavior, Pantxo Diribarne, 2018/11/04
- [Octave-bug-tracker] [bug #54942] implement uicontrol focusing behavior, Pantxo Diribarne, 2018/11/04
- [Octave-bug-tracker] [bug #54942] implement uicontrol focusing behavior, Rik, 2018/11/04
- [Octave-bug-tracker] [bug #54942] implement uicontrol focusing behavior, Guillaume, 2018/11/05
- [Octave-bug-tracker] [bug #54942] implement uicontrol focusing behavior, Rik, 2018/11/05
- [Octave-bug-tracker] [bug #54942] implement uicontrol focusing behavior, Guillaume, 2018/11/05
- [Octave-bug-tracker] [bug #54942] implement uicontrol focusing behavior, Rik, 2018/11/05
- [Octave-bug-tracker] [bug #54942] implement uicontrol focusing behavior, Guillaume, 2018/11/06
- [Octave-bug-tracker] [bug #54942] implement uicontrol focusing behavior, Pantxo Diribarne, 2018/11/06
- [Octave-bug-tracker] [bug #54942] implement uicontrol focusing behavior, Rik, 2018/11/06