From 7167d20f4fa738f9f762af766578d2363859ed46 Mon Sep 17 00:00:00 2001
From: mfranz <mfranz>
Date: Sat, 1 Dec 2007 23:37:58 +0000
Subject: [PATCH] read key code and modifiers back in after event interface
 call

---
 src/Input/input.cxx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/Input/input.cxx b/src/Input/input.cxx
index d150dd93e..1bf4b962a 100644
--- a/src/Input/input.cxx
+++ b/src/Input/input.cxx
@@ -251,6 +251,8 @@ FGInput::doKey (int k, int modifiers, int x, int y)
   if (!_key_code)
     return;
 
+  k = _key_code;
+  modifiers = _key_modifiers | (_key_pressed ? KEYMOD_NONE : KEYMOD_RELEASED);
   button &b = _key_bindings[k];
 
                                 // Key pressed.