mappedKeys.put(new KeyStroker(35, false, false, false, false),"[eof]"); mappedKeys.put(new KeyStroker(36, false, false, false, false),"[home]"); mappedKeys.put(new KeyStroker(39, false, false, false, false),"[right]"); mappedKeys.put(new KeyStroker(39, false, false, true, false),"[nextword]"); mappedKeys.put(new KeyStroker(37, false, false, false, false),"[left]"); mappedKeys.put(new KeyStroker(37, false, false, true, false),"[prevword]"); mappedKeys.put(new KeyStroker(38, false, false, false, false),"[up]"); mappedKeys.put(new KeyStroker(40, false, false, false, false),"[down]"); mappedKeys.put(new KeyStroker(34, false, false, false, false),"[pgdown]"); mappedKeys.put(new KeyStroker(33, false, false, false, false),"[pgup]");
mappedKeys.put(newKeyStroker(35, false, false, false, false,KeyStroker.KEY_LOCATION_STANDARD),"[eof]"); mappedKeys.put(newKeyStroker(36, false, false, false, false,KeyStroker.KEY_LOCATION_STANDARD),"[home]"); mappedKeys.put(newKeyStroker(39, false, false, false, false,KeyStroker.KEY_LOCATION_STANDARD),"[right]"); mappedKeys.put(newKeyStroker(39, false, false, true, false,KeyStroker.KEY_LOCATION_STANDARD),"[nextword]"); mappedKeys.put(newKeyStroker(37, false, false, false, false,KeyStroker.KEY_LOCATION_STANDARD),"[left]"); mappedKeys.put(newKeyStroker(37, false, false, true, false,KeyStroker.KEY_LOCATION_STANDARD),"[prevword]"); mappedKeys.put(newKeyStroker(38, false, false, false, false,KeyStroker.KEY_LOCATION_STANDARD),"[up]"); mappedKeys.put(newKeyStroker(40, false, false, false, false,KeyStroker.KEY_LOCATION_STANDARD),"[down]"); mappedKeys.put(newKeyStroker(34, false, false, false, false,KeyStroker.KEY_LOCATION_STANDARD),"[pgdown]"); mappedKeys.put(newKeyStroker(33, false, false, false, false,KeyStroker.KEY_LOCATION_STANDARD),"[pgup]");
   public static void init() {//      if (mappedKeys != null)//         return;////      init("keymap");////   }////   public static void init(String map) {      if (mappedKeys != null)         return;//      keyMapName = map;      mappedKeys = new HashMap(60);      workStroke = new KeyStroker(0, false, false, false,false);//      Properties keys = new Properties();      Properties keys = ConfigureFactory.getInstance().getProperties(                           GlobalConfigure.KEYMAP);      if (!loadKeyStrokes(keys)) {         // keycode shift control alternate         // Key <-> Keycode , isShiftDown , isControlDown , isAlternateDown         // my personal preference         mappedKeys.put(new KeyStroker(10, false, false, false, false),"[fldext]");         mappedKeys.put(new KeyStroker(17, false, true, false, false),"[enter]");//         mappedKeys.put(new KeyStroker(10, false, false, false),"[enter]");//         mappedKeys.put(new KeyStroker(10, true, false, false),"[fldext]");         mappedKeys.put(new KeyStroker(8, false, false, false, false),"[backspace]");         mappedKeys.put(new KeyStroker(9, false, false, false, false),"[tab]");         mappedKeys.put(new KeyStroker(9, true, false, false, false),"[backtab]");         mappedKeys.put(new KeyStroker(127, false, false, false, false),"[delete]");         mappedKeys.put(new KeyStroker(155, false, false, false, false),"[insert]");         mappedKeys.put(new KeyStroker(19, false, false, false, false),"[clear]");         mappedKeys.put(new KeyStroker(27, false, false, false, false),"[reset]");         mappedKeys.put(new KeyStroker(27, true, false, false, false),"[sysreq]");         mappedKeys.put(new KeyStroker(35, false, false, false, false),"[eof]");         mappedKeys.put(new KeyStroker(36, false, false, false, false),"[home]");         mappedKeys.put(new KeyStroker(39, false, false, false, false),"[right]");         mappedKeys.put(new KeyStroker(39, false, false, true, false),"[nextword]");         mappedKeys.put(new KeyStroker(37, false, false, false, false),"[left]");         mappedKeys.put(new KeyStroker(37, false, false, true, false),"[prevword]");         mappedKeys.put(new KeyStroker(38, false, false, false, false),"[up]");         mappedKeys.put(new KeyStroker(40, false, false, false, false),"[down]");         mappedKeys.put(new KeyStroker(34, false, false, false, false),"[pgdown]");         mappedKeys.put(new KeyStroker(33, false, false, false, false),"[pgup]");         mappedKeys.put(new KeyStroker(96, false, false, false, false),"[keypad0]");         mappedKeys.put(new KeyStroker(97, false, false, false, false),"[keypad1]");         mappedKeys.put(new KeyStroker(98, false, false, false, false),"[keypad2]");         mappedKeys.put(new KeyStroker(99, false, false, false, false),"[keypad3]");         mappedKeys.put(new KeyStroker(100, false, false, false, false),"[keypad4]");         mappedKeys.put(new KeyStroker(101, false, false, false, false),"[keypad5]");         mappedKeys.put(new KeyStroker(102, false, false, false, false),"[keypad6]");         mappedKeys.put(new KeyStroker(103, false, false, false, false),"[keypad7]");         mappedKeys.put(new KeyStroker(104, false, false, false, false),"[keypad8]");         mappedKeys.put(new KeyStroker(105, false, false, false, false),"[keypad9]");         mappedKeys.put(new KeyStroker(109, false, false, false, false),"[field-]");         mappedKeys.put(new KeyStroker(107, false, false, false, false),"[field+]");         mappedKeys.put(new KeyStroker(112, false, false, false, false),"[pf1]");         mappedKeys.put(new KeyStroker(113, false, false, false, false),"[pf2]");         mappedKeys.put(new KeyStroker(114, false, false, false, false),"[pf3]");         mappedKeys.put(new KeyStroker(115, false, false, false, false),"[pf4]");         mappedKeys.put(new KeyStroker(116, false, false, false, false),"[pf5]");         mappedKeys.put(new KeyStroker(117, false, false, false, false),"[pf6]");         mappedKeys.put(new KeyStroker(118, false, false, false, false),"[pf7]");         mappedKeys.put(new KeyStroker(119, false, false, false, false),"[pf8]");         mappedKeys.put(new KeyStroker(120, false, false, false, false),"[pf9]");         mappedKeys.put(new KeyStroker(121, false, false, false, false),"[pf10]");         mappedKeys.put(new KeyStroker(122, false, false, false, false),"[pf11]");         mappedKeys.put(new KeyStroker(123, false, false, false, false),"[pf12]");         mappedKeys.put(new KeyStroker(112, true, false, false, false),"[pf13]");         mappedKeys.put(new KeyStroker(113, true, false, false, false),"[pf14]");         mappedKeys.put(new KeyStroker(114, true, false, false, false),"[pf15]");         mappedKeys.put(new KeyStroker(115, true, false, false, false),"[pf16]");         mappedKeys.put(new KeyStroker(116, true, false, false, false),"[pf17]");         mappedKeys.put(new KeyStroker(117, true, false, false, false),"[pf18]");         mappedKeys.put(new KeyStroker(118, true, false, false, false),"[pf19]");         mappedKeys.put(new KeyStroker(119, true, false, false, false),"[pf20]");         mappedKeys.put(new KeyStroker(120, true, false, false, false),"[pf21]");         mappedKeys.put(new KeyStroker(121, true, false, false, false),"[pf22]");         mappedKeys.put(new KeyStroker(122, true, false, false, false),"[pf23]");         mappedKeys.put(new KeyStroker(123, true, false, false, false),"[pf24]");         mappedKeys.put(new KeyStroker(112, false, false, true, false),"[help]");         mappedKeys.put(new KeyStroker(72, false, false, true, false),"[hostprint]");         mappedKeys.put(new KeyStroker(67, false, false, true, false),"[copy]");         mappedKeys.put(new KeyStroker(86, false, false, true, false),"[paste]");         mappedKeys.put(new KeyStroker(39, true, false, false, false),"[markright]");         mappedKeys.put(new KeyStroker(37, true, false, false, false),"[markleft]");         mappedKeys.put(new KeyStroker(38, true, false, false, false),"[markup]");         mappedKeys.put(new KeyStroker(40, true, false, false, false),"[markdown]");         mappedKeys.put(new KeyStroker(155, true, false, false, false),"[dupfield]");         mappedKeys.put(new KeyStroker(17, true, true, false, false),"[newline]");         mappedKeys.put(new KeyStroker(34, false, false, true, false),"[jumpnext]");         mappedKeys.put(new KeyStroker(33, false, false, true, false),"[jumpprev]");         saveKeyMap();      }      else {         setKeyMap(keys);      }   }