This recipe presents the steps to accomplish exactly what we had done in the previous recipe, but for the web version of ADempiere.
btnMailas a member of the
org.adempiere.webui.component. CWindowToolbarclass by adding the following line:
private ToolBarButton btnMail;
initmethod in the
btnMail = createButton("SendMail", "SendMail","SendMail"); //Line# 156 btnMail.setVisible(true); btnMail.setDisabled(false); //Line#168 after all the toolbar buttons are initialized
configureKeyMapmethod in the
ctrlKeyMap.put(VK_M, btnMail);//Line# 277