5776798 [rkeene@sledge /home/rkeene/archive/floydssh/telnet]$ cat -n KeyEvent.java
  1 package telnet;
  2 
  3 /*
  4  * This file is part of "Telnet Floyd".
  5  *
  6  * (c) Matthias L. Jugel, Marcus Meißner 1996-2002. All Rights Reserved.
  7  * The file was changed by Radek Polak to work as midlet in MIDP 1.0
  8  *
  9  * Please visit http://javatelnet.org/ for updates and contact.
 10  *
 11  * --LICENSE NOTICE--
 12  * This program is free software; you can redistribute it and/or
 13  * modify it under the terms of the GNU General Public License
 14  * as published by the Free Software Foundation; either version 2
 15  * of the License, or (at your option) any later version.
 16  *
 17  * This program is distributed in the hope that it will be useful,
 18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 20  * GNU General Public License for more details.
 21  *
 22  * You should have received a copy of the GNU General Public License
 23  * along with this program; if not, write to the Free Software
 24  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 25  * --LICENSE NOTICE--
 26  *
 27  */
 28 
 29 
 30 
 31 public class KeyEvent {
 32 
 33   /* Virtual key codes. */
 34 
 35   public static final int VK_ENTER          = '\n';
 36   public static final int VK_BACK_SPACE     = '\b';
 37   public static final int VK_TAB            = '\t';
 38   public static final int VK_CANCEL         = 0x03;
 39   public static final int VK_CLEAR          = 0x0C;
 40   public static final int VK_SHIFT          = 0x10;
 41   public static final int VK_CONTROL        = 0x11;
 42   public static final int VK_ALT            = 0x12;
 43   public static final int VK_PAUSE          = 0x13;
 44   public static final int VK_CAPS_LOCK      = 0x14;
 45   public static final int VK_ESCAPE         = 0x1B;
 46   public static final int VK_SPACE          = 0x20;
 47   public static final int VK_PAGE_UP        = 0x21;
 48   public static final int VK_PAGE_DOWN      = 0x22;
 49   public static final int VK_END            = 0x23;
 50   public static final int VK_HOME           = 0x24;
 51 
 52   /**
 53    * Constant for the non-numpad <b>left</b> arrow key.
 54    * @see #VK_KP_LEFT
 55    */
 56   public static final int VK_LEFT           = 0x25;
 57 
 58   /**
 59    * Constant for the non-numpad <b>up</b> arrow key.
 60    * @see #VK_KP_UP
 61    */
 62   public static final int VK_UP             = 0x26;
 63 
 64   /**
 65    * Constant for the non-numpad <b>right</b> arrow key.
 66    * @see #VK_KP_RIGHT
 67    */
 68   public static final int VK_RIGHT          = 0x27;
 69 
 70   /**
 71    * Constant for the non-numpad <b>down</b> arrow key.
 72    * @see #VK_KP_DOWN
 73    */
 74   public static final int VK_DOWN           = 0x28;
 75 
 76   public static final int VK_COMMA          = 0x2C;
 77 
 78   /**
 79    * Constant for the "-" key.
 80    * @since 1.2
 81    */
 82   public static final int VK_MINUS          = 0x2D;
 83 
 84   public static final int VK_PERIOD         = 0x2E;
 85   public static final int VK_SLASH          = 0x2F;
 86 
 87   /** VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39) */
 88   public static final int VK_0              = 0x30;
 89   public static final int VK_1              = 0x31;
 90   public static final int VK_2              = 0x32;
 91   public static final int VK_3              = 0x33;
 92   public static final int VK_4              = 0x34;
 93   public static final int VK_5              = 0x35;
 94   public static final int VK_6              = 0x36;
 95   public static final int VK_7              = 0x37;
 96   public static final int VK_8              = 0x38;
 97   public static final int VK_9              = 0x39;
 98 
 99   public static final int VK_SEMICOLON      = 0x3B;
100   public static final int VK_EQUALS         = 0x3D;
101 
102   /** VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A) */
103   public static final int VK_A              = 0x41;
104   public static final int VK_B              = 0x42;
105   public static final int VK_C              = 0x43;
106   public static final int VK_D              = 0x44;
107   public static final int VK_E              = 0x45;
108   public static final int VK_F              = 0x46;
109   public static final int VK_G              = 0x47;
110   public static final int VK_H              = 0x48;
111   public static final int VK_I              = 0x49;
112   public static final int VK_J              = 0x4A;
113   public static final int VK_K              = 0x4B;
114   public static final int VK_L              = 0x4C;
115   public static final int VK_M              = 0x4D;
116   public static final int VK_N              = 0x4E;
117   public static final int VK_O              = 0x4F;
118   public static final int VK_P              = 0x50;
119   public static final int VK_Q              = 0x51;
120   public static final int VK_R              = 0x52;
121   public static final int VK_S              = 0x53;
122   public static final int VK_T              = 0x54;
123   public static final int VK_U              = 0x55;
124   public static final int VK_V              = 0x56;
125   public static final int VK_W              = 0x57;
126   public static final int VK_X              = 0x58;
127   public static final int VK_Y              = 0x59;
128   public static final int VK_Z              = 0x5A;
129 
130   public static final int VK_OPEN_BRACKET   = 0x5B;
131   public static final int VK_BACK_SLASH     = 0x5C;
132   public static final int VK_CLOSE_BRACKET  = 0x5D;
133 
134   public static final int VK_NUMPAD0        = 0x60;
135   public static final int VK_NUMPAD1        = 0x61;
136   public static final int VK_NUMPAD2        = 0x62;
137   public static final int VK_NUMPAD3        = 0x63;
138   public static final int VK_NUMPAD4        = 0x64;
139   public static final int VK_NUMPAD5        = 0x65;
140   public static final int VK_NUMPAD6        = 0x66;
141   public static final int VK_NUMPAD7        = 0x67;
142   public static final int VK_NUMPAD8        = 0x68;
143   public static final int VK_NUMPAD9        = 0x69;
144   public static final int VK_MULTIPLY       = 0x6A;
145   public static final int VK_ADD            = 0x6B;
146 
147   /**
148    * This constant is obsolete, and is included only for backwards compatibility.
149    * @see VK_SEPARATOR
150    */
151   public static final int VK_SEPARATER      = 0x6C;
152 
153   /**
154    * Constant for the Numpad Separator key.
155    * @since 1.4
156    */
157   public static final int VK_SEPARATOR      = VK_SEPARATER;
158 
159   public static final int VK_SUBTRACT       = 0x6D;
160   public static final int VK_DECIMAL        = 0x6E;
161   public static final int VK_DIVIDE         = 0x6F;
162   public static final int VK_DELETE         = 0x7F; /* ASCII DEL */
163   public static final int VK_NUM_LOCK       = 0x90;
164   public static final int VK_SCROLL_LOCK    = 0x91;
165 
166   /** Constant for the F1 function key. */
167   public static final int VK_F1             = 0x70;
168 
169   /** Constant for the F2 function key. */
170   public static final int VK_F2             = 0x71;
171 
172   /** Constant for the F3 function key. */
173   public static final int VK_F3             = 0x72;
174 
175   /** Constant for the F4 function key. */
176   public static final int VK_F4             = 0x73;
177 
178   /** Constant for the F5 function key. */
179   public static final int VK_F5             = 0x74;
180 
181   /** Constant for the F6 function key. */
182   public static final int VK_F6             = 0x75;
183 
184   /** Constant for the F7 function key. */
185   public static final int VK_F7             = 0x76;
186 
187   /** Constant for the F8 function key. */
188   public static final int VK_F8             = 0x77;
189 
190   /** Constant for the F9 function key. */
191   public static final int VK_F9             = 0x78;
192 
193   /** Constant for the F10 function key. */
194   public static final int VK_F10            = 0x79;
195 
196   /** Constant for the F11 function key. */
197   public static final int VK_F11            = 0x7A;
198 
199   /** Constant for the F12 function key. */
200   public static final int VK_F12            = 0x7B;
201 
202   public static final int VK_INSERT         = 0x9B;
203 
204 }
5776799 [rkeene@sledge /home/rkeene/archive/floydssh/telnet]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2004-02-27 02:32:14