From d6a7bd786fd657e16c1ebad5c515d60ba1368d8a Mon Sep 17 00:00:00 2001
From: markt <markt>
Date: Fri, 2 Mar 2007 19:17:06 +0000
Subject: add XK_KP_Enter to menu

---
 ChangeLog        | 2 ++
 src/FbTk/Menu.cc | 1 +
 2 files changed, 3 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 4beaed3..113c751 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
  (Format: Year/Month/Day)
 Changes for 1.0rc3:
+   * Added support for keypad enter key in menu (Mark)
+     FbTk/Menu.cc
 *07/02/28:
    * Fixed some strange menu behaviors (Mark)
      FbTk/Menu.cc/hh
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index cb401fa..e72b750 100644
--- a/src/FbTk/Menu.cc
+++ b/src/FbTk/Menu.cc
@@ -1038,6 +1038,7 @@ void Menu::keyPressEvent(XKeyEvent &event) {
     case XK_Escape: // close menu
         hide();
         break;
+    case XK_KP_Enter:
     case XK_Return:
         // send fake button 1 click
         if (validIndex(m_active_index) &&
-- 
cgit v0.11.2