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

 
 

bug #44910: windowkeypressfcn callback not implemented

Submitted by:  Rik <rik5>
Submitted on:  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

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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 amro_octave
  • -email is unavailable- added by rik5 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project 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.3