-
- wxPreviewControlBar* controlBar = ((wxPreviewFrame*) GetParent())->GetControlBar();
- switch(event.GetKeyCode())
- {
- case WXK_NEXT:
- controlBar->OnNext(); break;
- case WXK_PRIOR:
- controlBar->OnPrevious(); break;
- case WXK_HOME:
- controlBar->OnFirst(); break;
- case WXK_END:
- controlBar->OnLast(); break;
- case WXK_TAB:
- controlBar->OnGoto(); break;
- default:
- event.Skip();
- }
+
+ switch(event.GetKeyCode())
+ {
+ case WXK_NEXT:
+ controlBar->OnNext(); break;
+ case WXK_PRIOR:
+ controlBar->OnPrevious(); break;
+ case WXK_HOME:
+ controlBar->OnFirst(); break;
+ case WXK_END:
+ controlBar->OnLast(); break;
+ default:
+ event.Skip();
+ }