IDEMPIERE-4744 Minor improvements to Quick Form / Shortcut Shift+Alt+Q (#1238)

This commit is contained in:
Carlos Ruiz 2022-03-14 19:46:34 +01:00 committed by GitHub
parent 2c08060361
commit 316d488ac5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -294,7 +294,7 @@ public class AdempiereWebUI extends Window implements EventListener<Event>, IWeb
keyListener = new Keylistener();
keyListener.setPage(this.getPage());
keyListener.setCtrlKeys("@a@c@d@e@f@h@l@m@n@o@p@r@s@t@w@x@z@#left@#right@#up@#down@#home@#end#enter^u@u@#pgdn@#pgup$#f2^#f2");
keyListener.setCtrlKeys("@a@c@d@e@f@h@l@m@n@o@p@q@r@s@t@w@x@z@#left@#right@#up@#down@#home@#end#enter^u@u@#pgdn@#pgup$#f2^#f2");
keyListener.setAutoBlur(false);
//create new desktop

View File

@ -419,7 +419,7 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
}
}
});
button.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "QuickForm")));
button.setTooltiptext(Util.cleanAmp(Msg.getMsg(Env.getCtx(), "QuickForm")) + " Shift+Alt+Q");
buttons.put(BTN_QUICK_FORM_ID.substring(3, BTN_QUICK_FORM_ID.length()), button);
// ADD Customize grid button
@ -1041,6 +1041,7 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
private static final int VK_S = 0x53;
private static final int VK_D = 0x44;
private static final int VK_O = 0x4F;
private static final int VK_Q = 0x51;
private void onCtrlKeyEvent(KeyEvent keyEvent) {
ToolBarButton btn = null;
if (keyEvent.isAltKey() && !keyEvent.isCtrlKey() && keyEvent.isShiftKey()) { // Shift+Alt key
@ -1066,6 +1067,8 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
btn = getSelectedPanel().getToolbarButton(BTN_DELETE_ID);
} else if (keyEvent.getKeyCode() == VK_O) {
btn = getSelectedPanel().getToolbarButton(BTN_PROCESS_ID);
} else if (keyEvent.getKeyCode() == VK_Q) {
btn = getSelectedPanel().getToolbarButton(BTN_QUICK_FORM_ID);
}
}
if (btn != null) {