| 70 | } |
| 71 | |
| 72 | void OnFocus( wxWindow &window, wxFocusEvent &event ) |
| 73 | { |
| 74 | if (event.GetEventType() == wxEVT_KILL_FOCUS) |
| 75 | KeyboardCapture::Release( &window ); |
| 76 | else |
| 77 | KeyboardCapture::Capture( &window ); |
| 78 | |
| 79 | window.Refresh( false ); |
| 80 | event.Skip(); |
| 81 | } |
| 82 | |
| 83 | } |
| 84 |