Ticket #4689: stylededit-shortcuts.diff

File stylededit-shortcuts.diff, 1016 bytes (added by negusnyul, 11 years ago)
  • src/apps/stylededit/StyledEditWindow.cpp

     
    11441144    subMenu->AddItem(fAlignLeft = new BMenuItem(B_TRANSLATE("Left"),
    11451145        new BMessage(ALIGN_LEFT)));
    11461146    fAlignLeft->SetMarked(true);
     1147    fAlignLeft->SetShortcut('L', B_OPTION_KEY);
    11471148
    11481149    subMenu->AddItem(fAlignCenter = new BMenuItem(B_TRANSLATE("Center"),
    11491150        new BMessage(ALIGN_CENTER)));
     1151    fAlignCenter->SetShortcut('C', B_OPTION_KEY);
     1152
    11501153    subMenu->AddItem(fAlignRight = new BMenuItem(B_TRANSLATE("Right"),
    11511154        new BMessage(ALIGN_RIGHT)));
     1155    fAlignRight->SetShortcut('R', B_OPTION_KEY);
     1156
    11521157    menu->AddItem(subMenu);
    11531158    menu->AddItem(fWrapItem = new BMenuItem(B_TRANSLATE("Wrap lines"),
    11541159        new BMessage(WRAP_LINES)));
    11551160    fWrapItem->SetMarked(true);
     1161    fWrapItem->SetShortcut('W', B_OPTION_KEY);
    11561162
    11571163    menu->AddSeparatorItem();
    11581164    menu->AddItem(menuItem = new BMenuItem(