bugGNU Octave - Bugs: bug #56599, ginput returns a different value...

 
 

bug #56599: ginput returns a different value for numpad "enter" than Matlab

Submitter:  Marcel Geers <mpageers>
Submitted:  Tue 09 Jul 2019 09:17:35 AM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 10 Jul 2019 12:52:30 AM UTC, comment #2: 

I checked in a fix here (https://hg.savannah.gnu.org/hgweb/octave/rev/57bb8f531707).  This is on the development branch of Octave and will be part of the 6.1 release.  Of course, since this is just a change to an m-file you can download ginput.m from the Mercurial repository and replace your local copy if you want to see the fix earlier.

Rik <rik5>
Group administrator
Wed 10 Jul 2019 12:38:23 AM UTC, comment #1: 

Confirmed.  The issue appears to be that the struct which holds information on the key that was pressed contains "return" when the enter key on the main keyboard was pressed and "enter" when the enter key on the numeric keypad was touched.

Rik <rik5>
Group administrator
Tue 09 Jul 2019 09:17:35 AM UTC, original submission:  

In Matlab, the function ginput returns an empty array for both "enter" keys. Octave returns ASCII carriage return (13) when the numpad enter key is pressed.

Marcel Geers <mpageers>

 

(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 (Posted a comment)
  • -email is unavailable- added by mpageers (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-07-10 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
        Release5.1.0 dev
    2019-07-10 rik5 StatusNone Confirmed
        Operating SystemMicrosoft Windows Any

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code