Changeset 28626 for main/trunk/gli/src


Ignore:
Timestamp:
2013-11-14T15:38:21+13:00 (10 years ago)
Author:
ak19
Message:

GLI and GEMS Edit menu refers to Apple key on Macs instead of the Ctrl key, since Professor Witten and Jenny discovered that the Apple key now works on Mac machines in GLI (and the Ctrl doesn't work anymore).

Location:
main/trunk/gli/src/org/greenstone/gatherer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/gems/GEMS.java

    r13680 r28626  
    447447        edit = new JMenu();
    448448        edit.setText(Dictionary.get("Menu.Edit"));
    449        
    450         edit_cut = new JMenuItem(Dictionary.get("Menu.Edit_Cut"));
     449        String modkey = Utility.isMac() ? "apple" : "ctrl";
     450        edit_cut = new JMenuItem(Dictionary.get("Menu.Edit_Cut", modkey));
    451451        edit_cut.addActionListener(this);
    452452       
    453         edit_copy = new JMenuItem(Dictionary.get("Menu.Edit_Copy"));
     453        edit_copy = new JMenuItem(Dictionary.get("Menu.Edit_Copy", modkey));
    454454        edit_copy.addActionListener(this);
    455455       
    456         edit_paste = new JMenuItem(Dictionary.get("Menu.Edit_Paste"));
     456        edit_paste = new JMenuItem(Dictionary.get("Menu.Edit_Paste", modkey));
    457457        edit_paste.addActionListener(this);
    458458       
  • main/trunk/gli/src/org/greenstone/gatherer/gui/MenuBar.java

    r23860 r28626  
    4545import org.greenstone.gatherer.Gatherer;
    4646import org.greenstone.gatherer.util.JarTools;
     47import org.greenstone.gatherer.util.Utility;
    4748
    4849/** The menu bar for the Gatherer main GUI.
     
    161162    edit.setText(Dictionary.get("Menu.Edit"));
    162163    edit.setComponentOrientation(Dictionary.getOrientation());
    163        
    164     edit_cut = new JMenuItem(Dictionary.get("Menu.Edit_Cut"));
     164        String modkey = Utility.isMac() ? "apple" : "ctrl";
     165    edit_cut = new JMenuItem(Dictionary.get("Menu.Edit_Cut", modkey));
    165166    edit_cut.addActionListener(Gatherer.g_man);
    166167    edit_cut.setComponentOrientation(Dictionary.getOrientation());
    167168       
    168     edit_copy = new JMenuItem(Dictionary.get("Menu.Edit_Copy"));
     169    edit_copy = new JMenuItem(Dictionary.get("Menu.Edit_Copy", modkey));
    169170    edit_copy.addActionListener(Gatherer.g_man);
    170171        edit_copy.setComponentOrientation(Dictionary.getOrientation());
    171172   
    172     edit_paste = new JMenuItem(Dictionary.get("Menu.Edit_Paste"));
     173    edit_paste = new JMenuItem(Dictionary.get("Menu.Edit_Paste", modkey));
    173174    edit_paste.addActionListener(Gatherer.g_man);
    174175    edit_paste.setComponentOrientation(Dictionary.getOrientation());
Note: See TracChangeset for help on using the changeset viewer.