octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #44900] Extra fields in KeyEvent structure fro


From: Rik
Subject: [Octave-bug-tracker] [bug #44900] Extra fields in KeyEvent structure from ginput needed
Date: Wed, 22 Apr 2015 15:31:22 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0

URL:
  <http://savannah.gnu.org/bugs/?44900>

                 Summary: Extra fields in KeyEvent structure from ginput
needed
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Wed 22 Apr 2015 08:31:21 AM PDT
                Category: Octave Function
                Severity: 2 - Minor
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

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.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?44900>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]