2 #include "KeySymbols.h"
9 AddInput(kKeyPressMask);
19 TGPopupMenu::PoppedUp();
20 gVirtualX->SetInputFocus(fId);
21 gVirtualX->GrabKey(fId, 0
l, kAnyModifier, kTRUE);
25 gVirtualX->GrabKey(fId, 0
l, kAnyModifier, kFALSE);
26 TGPopupMenu::PoppedDown();
30 if (
event->fType != kGKeyPress)
35 gVirtualX->LookupString(
event,
tmp,
sizeof(
tmp), keysym);
37 TGMenuEntry* ce = fCurrent;
42 ce = (TGMenuEntry*)GetListOfEntries()->Before(ce);
43 while (ce && ((ce->GetType() == kMenuSeparator) || (ce->GetType() == kMenuLabel) ||
44 !(ce->GetStatus() & kMenuEnableMask))) {
45 ce = (TGMenuEntry*)GetListOfEntries()->Before(ce);
48 ce = (TGMenuEntry*)GetListOfEntries()->Last();
54 ce = (TGMenuEntry*)GetListOfEntries()->After(ce);
55 while (ce && ((ce->GetType() == kMenuSeparator) || (ce->GetType() == kMenuLabel) ||
56 !(ce->GetStatus() & kMenuEnableMask))) {
57 ce = (TGMenuEntry*)GetListOfEntries()->After(ce);
60 ce = (TGMenuEntry*)GetListOfEntries()->First();
67 ev.fType = kButtonRelease;
69 return HandleButton(&
ev);
73 void*
dummy =
nullptr;
74 return EndMenu(
dummy);