bugGNU Octave - Bugs: bug #44910, windowkeypressfcn callback not...

 
 

bug #44910: windowkeypressfcn callback not implemented

Submitter:  Rik <rik5>
Submitted:  Thu 23 Apr 2015 04:59:31 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 18 Mar 2023 06:17:33 PM UTC, comment #2: 

Still present in octave 7.1 (MAC OSX)

Georg Wiora <gwiora>
Fri 02 Nov 2018 08:02:18 PM UTC, comment #1: 

Still present, 11/2/18.

Rik <rik5>
Group administrator
Thu 23 Apr 2015 04:59:31 PM UTC, original submission:  

The figure properties 'windowkeypressfcn' and 'windowkeyreleasefcn' are only implemented to the extent that you can modify the property values.  There is no actual backend implementation for the Qt or FLTK toolkits.

What should happen is that the 'windowkeypressfcn' gets called whenever there is a keypress event in the window, even when another child object like a uicontrol has a keypressfcn set.  Some explanation is here: http://stackoverflow.com/questions/25174400/matlab-difference-between-keypressfcn-and-windowkeypressfcn.

I'm attaching a test script tst_keypress.m.  Call it with no arguments to see how the keypressfcn callback works.  Then do 'close all' and call tst_keypress (true) to run the windowkeypressfcn callback and see that nothing happens.

It's pretty obvious that there is no backend because I used 'grep -i windowkey' on Canvas.cc and _init_fltk_.cc and found nothing.  Those are the two files that need to be updated to support this.

Rik <rik5>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #33748:  tst_keypress.m added by rik5 (493B - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gwiora (Posted a comment)
  • -email is unavailable- added by amro_octave
  • -email is unavailable- added by rik5 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-05-30 amro_octave Carbon-Copy- Added amro_octave
    2015-04-23 rik5 Attached File- Added tst_keypress.m, #33748

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code