bugGNU Octave - Bugs: bug #44900, Extra fields in KeyEvent structure...

 
 

bug #44900: Extra fields in KeyEvent structure from ginput needed

Submitted by:  Rik <rik5>
Submitted on:  Wed 22 Apr 2015 03:31:21 PM UTC  
 
Category:  Octave Function Severity:  2 - Minor
Priority:  3 - Low 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.

 

Wed 22 Apr 2015 03:31:21 PM UTC, original submission:

Apparently Matlab has expanded their KeyEvent structure with the addition of two more fields. These are:

"Source" : this holds a text string representing the object that had focus when a key was pressed. For example, "keypressfcn" for the current figure would return "figure".

"Eventname" : this holds a text string of the event that caused the callback to fire. This might be "KeyPress" or "KeyRelease".

For Qt, the function to modify is in QtHandlesUtils.cc:makeKeyEventStruct. It is possible that one needs to track down the instances where this function is called have them give the information about Source and Eventname over to this function. Still, a grep showed that there are only three times this function is used: 2 in Canvas.cc and 1 in BaseControl.cc.

For FLTK, the analogous routine is format_key_event located in _init_fltk_.cc. There are also three instances in _init_fltk_.cc where this function is called.

Rik <rik5>
Project Administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -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
    2015-04-23 rik5 StatusNone => Confirmed
    2015-04-22 rik5 Priority5 - Normal => 3 - Low

    Back to the top


    Powered by Savane 3.3