Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /*
  2.  * Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net>
  3.  * Copyright 2004 James Bursa <bursa@users.sourceforge.net>
  4.  * Copyright 2004 Andrew Timmins <atimmins@blueyonder.co.uk>
  5.  * Copyright 2004 John Tytgat <joty@netsurf-browser.org>
  6.  *
  7.  * This file is part of NetSurf, http://www.netsurf-browser.org/
  8.  *
  9.  * NetSurf is free software; you can redistribute it and/or modify
  10.  * it under the terms of the GNU General Public License as published by
  11.  * the Free Software Foundation; version 2 of the License.
  12.  *
  13.  * NetSurf is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  * GNU General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU General Public License
  19.  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  20.  */
  21.  
  22. /** \file
  23.  * Textual input handling (interface)
  24.  */
  25.  
  26. #ifndef _NETSURF_DESKTOP_TEXTINPUT_H_
  27. #define _NETSURF_DESKTOP_TEXTINPUT_H_
  28.  
  29. enum input_key {
  30.  
  31.         KEY_SELECT_ALL = 1,
  32.         KEY_COPY_SELECTION = 3,
  33.  
  34.         KEY_DELETE_LEFT = 8,
  35.         KEY_TAB = 9,
  36.  
  37.         KEY_NL = 10,
  38.         KEY_SHIFT_TAB = 11,
  39.         KEY_CR = 13,
  40.  
  41.         KEY_CUT_LINE = 21,
  42.         KEY_PASTE = 22,
  43.         KEY_CUT_SELECTION = 24,
  44.         KEY_CLEAR_SELECTION = 26,
  45.  
  46.         KEY_ESCAPE = 27,
  47.  
  48.         /* cursor movement keys */
  49.         KEY_LEFT = 28,
  50.         KEY_RIGHT,
  51.         KEY_UP,
  52.         KEY_DOWN,
  53.  
  54.         KEY_DELETE_RIGHT = 127,
  55.  
  56.         KEY_LINE_START = 128,
  57.         KEY_LINE_END,
  58.         KEY_TEXT_START,
  59.         KEY_TEXT_END,
  60.         KEY_WORD_LEFT,
  61.         KEY_WORD_RIGHT,
  62.         KEY_PAGE_UP,
  63.         KEY_PAGE_DOWN,
  64.         KEY_DELETE_LINE_END,
  65.         KEY_DELETE_LINE_START,
  66. };
  67.  
  68.  
  69. #endif
  70.