add XK_KP_Enter to menu

This commit is contained in:
markt 2007-03-02 19:17:06 +00:00
parent 2f63ba231c
commit d6a7bd786f
2 changed files with 3 additions and 0 deletions

View file

@ -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

View file

@ -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) &&