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

 
 

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

Submitter:  Rik <rik5>
Submitted:  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
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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)
  •  

    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
    2015-04-23 rik5 StatusNone Confirmed
    2015-04-22 rik5 Priority5 - Normal 3 - Low

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code