repo.or.cz
/
forms.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Initial commit
[forms.git]
/
src
/
F_Menu_Button.C
blob
a562580eeb1e2b0bb309c9912738bbae48779b22
1
2
#include <F_Menu_Button.H>
3
4
using namespace F;
5
6
bool F_Menu_Button::handle(F_Event_t &ev)
7
{
8
switch(ev.type) {
9
case F_KEY_PRESS:
10
if (ev.kbd.key == F_Escape) {
11
case F_POINTER_PRESS:
12
hide();
13
b_->state(F_BUTTON_ON_FOCUS);
14
b_->show(F_DAMAGE_DRAW);
15
return true;
16
}
17
default:
18
// debug("bid - %d, evtype - %d", id(), ev.type);
19
break;
20
}
21
return F_Menu::handle(ev);
22
}