Heng Sin Low 2009-05-19 07:26:25 +00:00
parent 88abc8db4d
commit bfe8693f98
2 changed files with 68 additions and 68 deletions

View File

@ -206,7 +206,7 @@ public class CWindowToolbar extends FToolbar implements EventListener
buttons.put(name, btn);
this.appendChild(btn);
//make toolbar button last to receive focus
btn.setTabindex(32767);
btn.setTabindex(0);
return btn;
}
@ -270,7 +270,7 @@ public class CWindowToolbar extends FToolbar implements EventListener
ctrlKeyMap.put(VK_P, btnPrint);
ctrlKeyMap.put(VK_N, btnNew);
ctrlKeyMap.put(VK_S, btnSave);
ctrlKeyMap.put(VK_X, btnDelete);
ctrlKeyMap.put(VK_D, btnDelete);
ctrlKeyMap.put(VK_F, btnFind);
}

View File

@ -176,7 +176,7 @@ public class ADWindowPanel extends AbstractADWindowPanel
keyListener.detach();
keyListener = new Keylistener();
statusBar.appendChild(keyListener);
keyListener.setCtrlKeys("#f1#f2#f3#f4#f5#f6#f7#f8#f9#f10#f11#f12^f^i^n^s^x@#left@#right@#up@#down@#pgup@#pgdn@p^p@z@x#enter");
keyListener.setCtrlKeys("#f1#f2#f3#f4#f5#f6#f7#f8#f9#f10#f11#f12^f^i^n^s^d@#left@#right@#up@#down@#pgup@#pgdn@p^p@z@x#enter");
keyListener.addEventListener(Events.ON_CTRL_KEY, toolbar);
keyListener.addEventListener(Events.ON_CTRL_KEY, this);
}