bool JumpToDocDialogue::process_key(int ch)
{
  bool retval = false;
  switch(ch) {
  case CTRL('P'):
  case KEY_UP:
    up_stack();
    retval = true;
    break;

  case CTRL('N'):
  case KEY_DOWN:
    down_stack();
    retval = true;
    break;

  case CTRL('J'):
  case CTRL('M'):
  case KEY_ENTER:
    _completed = true;
    retval = true;
    break;
  }
  return retval;
}
Beispiel #2
0
    // Incoming ciphertext packet arriving from network,
    // we will take ownership of pkt.
    void net_recv(PACKET& pkt)
    {
      if (!invalidated())
	up_stack(pkt);
    }