| 438 | } |
| 439 | |
| 440 | virtual void focus(bool on) |
| 441 | { |
| 442 | if(on && hoveraction) execute(hoveraction); |
| 443 | |
| 444 | textinput(on, TI_MENU); |
| 445 | if(action && !on && modified && parent->items.find(this) != parent->items.length() - 1) |
| 446 | { |
| 447 | modified = false; |
| 448 | execaction(input.buf); |
| 449 | } |
| 450 | } |
| 451 | |
| 452 | virtual void key(int code, bool isdown) |
| 453 | { |