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: NoneAssigned to: None
Originator Name: Open/Closed: Open
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.

 

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 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):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup