Java Code Examples for java.awt.event.InputEvent.isMetaDown()

The following are Jave code examples for showing how to use isMetaDown() of the java.awt.event.InputEvent class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: marathonv5   File:   Source Code and License Vote up 6 votes
private String buildModifiersText(InputEvent e) {
    StringBuilder sb = new StringBuilder();
    if (e.isAltDown()) {
    if (e.isControlDown()) {
    if (e.isMetaDown()) {
    if (e.isShiftDown()) {
    if (sb.length() > 0) {
        sb.setLength(sb.length() - 1);
    String mtext = sb.toString();
    return mtext;