bugGNU Octave - Bugs: bug #39738, Keyboard events discarded if mouse...

 
 

bug #39738: Keyboard events discarded if mouse pointer out of figure window

Submitted by:  Cristian <r41nm4n>
Submitted on:  Fri 09 Aug 2013 02:36:49 PM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: Andreas Weber <andy1978>
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 19 Aug 2014 02:33:00 PM UTC, comment #2:

No response from the original poster for 3 weeks. I think this issue hase been resolved in the default branch. I'm closing the report now but feel free to reopen it if the problem still exists.

Andreas Weber <andy1978>
Project MemberIn charge of this item.
Thu 31 Jul 2014 10:00:47 PM UTC, comment #1:

This should now be fixed in default. If I follow your instructions I get

Andreas Weber <andy1978>
Project MemberIn charge of this item.
Fri 09 Aug 2013 02:36:49 PM UTC, original submission:

If the mouse pointer is out of the figure window, all the events are discarded, including keyboard events.

This happens according to the implementation of _init_fltk_.cc, as this code snippet of the function "int handle (int event)" shows:

However, this implies incorrect behaviour for the detection of events related to key press and release, and key modifiers.

Such a wrong behaviour can be shown with the help of the following script:

Once the script is run, the wrong behaviour can be verified by following these instructions:

1) go on the black square in the figure window with the mouse pointer, without pressing any mouse button
2) press "alt" (or "ctrl", or "shift", ...) and keep it pressed
3) move the mouse pointer out of the figure window
4) release "alt" (or what was pressed at step 2)
5) move the mouse pointer back on the black square
6) press "1" (or any other number or letter)

At the console, then I get

which shows that the keyboard event was detected as a key press with modifier "alt", which is of course not correct. The correct result would be

Cristian <r41nm4n>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by andy1978 (Posted a comment)
  • -unavailable- added by r41nm4n (Submitted the item)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 19 Aug 2014 02:33:00 PM UTCandy1978StatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Thu 31 Jul 2014 10:00:47 PM UTCandy1978StatusNone=>Ready For Test
      Assigned toNone=>andy1978

    Back to the top


    Powered by Savane 3.1-cleanup