bugGNU Octave - Bugs: bug #49397, Spacebar key is not recognize as...

 
 

bug #49397: Spacebar key is not recognize as "space"

Submitted by:  Avinoam Kalma <avinoam>
Submitted on:  Thu 20 Oct 2016 08:32:36 PM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: AvinoamOpen/Closed: Closed
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.

 

Fri 21 Oct 2016 07:51:14 PM UTC, comment #4:

Because although I think impact of the code change is small, I'm not 100% certain. That would require more extensive testing which it can get over time on the development branch. Also, the severity of the bug isn't large.

Rik <rik5>
Project Administrator
Fri 21 Oct 2016 07:46:36 PM UTC, comment #3:

Thanks @Pantxo & @Rik.

@Rik: Why didn't you push it to the stable branch?

Avinoam Kalma <avinoam>
Project Member
Fri 21 Oct 2016 04:37:08 PM UTC, comment #2:

Patch works fine. I pushed it here http://hg.savannah.gnu.org/hgweb/octave/rev/65d84345abfc. Fixed, closing report.

Rik <rik5>
Project Administrator
Thu 20 Oct 2016 10:06:57 PM UTC, comment #1:

I can confirm this behavior with the "space" key. It looks like Qt::Key_Any has the same value as Qt::Key_Space hence the confusion in the key->string mapper. I attached a simple cset.

Here is also a simplified test script:

I change the OS to "any" as it also happens on linux, and the category to "Plotting with OpenGL".

(file #38779)

Pantxo Diribarne <pantxo>
Project Member
Thu 20 Oct 2016 08:32:36 PM UTC, original submission:

consider the following simple script:

If you press any key, Octave will print this key. If you press
escape, Octave will print "escape" and quit this script.

The problem: if you press the spacebar, Octave will print
"any" and not "space" as Matlab does.

Avinoam Kalma <avinoam>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #38779:  space.patch added by pantxo (983B - text/x-diff)
file #38778:  test_space.m added by avinoam (517B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by pantxo (Updated the item)
  • -unavailable- added by avinoam (Submitted the item)
  • -unavailable- added by avinoam
  •  

    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 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 21 Oct 2016 04:37:08 PM UTCrik5StatusPatch Submitted=>Fixed
      Open/ClosedOpen=>Closed
    Thu 20 Oct 2016 10:08:57 PM UTCpantxoStatusConfirmed=>Patch Submitted
    Thu 20 Oct 2016 10:06:57 PM UTCpantxoAttached File-=>Added space.patch, #38779
      CategoryOctave Function=>Plotting with OpenGL
      StatusNone=>Confirmed
      Operating SystemMicrosoft Windows=>Any
    Thu 20 Oct 2016 08:32:36 PM UTCavinoamAttached File-=>Added test_space.m, #38778
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1