URL:
<http://gna.org/patch/?1645>
Summary: Patch to prevent sending of keyboard events to
inactive controls
Project: Battle for Wesnoth
Submitted by: greywhind
Submitted on: Saturday 04/24/2010 at 17:25
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
There is a bug in the current version of the gui2 event distributor class -
events are not supposed to be sent to controls that are inactive, but
keyboard presses were being sent. This patch is designed to fix this bug.
A cast is necessary, though perhaps not the best long-term solution, because
twidgets don't necessarily have a "get_active" method. It might be better to
give all twidgets such a method in the future, so that the cast is
unnecessary, but it would be a bigger change and mordante suggested that we
use the simpler solution for now.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Saturday 04/24/2010 at 17:25 Name: inactiveeventsfix.patch Size: 1kB
By: greywhind
The patch to prevent sending of keyboard events to inactive controls.
<http://gna.org/patch/download.php?file_id=9061>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?1645>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs