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 OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating 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 File(s):

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

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

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 30 May 2017 03:14:51 PM UTCamro_octaveCarbon-Copy-=>Added amro_octave
    Thu 23 Apr 2015 04:59:31 PM UTCrik5Attached File-=>Added tst_keypress.m, #33748

    Back to the top

    Powered by Savane 3.1-cleanup1