| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
package org.fest.swing.keystroke; |
| 17 |
|
|
| 18 |
|
import static java.awt.event.KeyEvent.*; |
| 19 |
|
import static java.util.Collections.unmodifiableList; |
| 20 |
|
import static org.fest.swing.keystroke.KeyStrokeMapping.mapping; |
| 21 |
|
import static org.fest.swing.keystroke.KeyStrokeMappingProvider.NO_MASK; |
| 22 |
|
import static org.fest.swing.util.Platform.isWindows; |
| 23 |
|
|
| 24 |
|
import java.util.*; |
| 25 |
|
|
| 26 |
|
|
| 27 |
|
@link |
| 28 |
|
|
| 29 |
|
@author |
| 30 |
|
|
| 31 |
|
@since |
| 32 |
|
|
|
|
|
| 91.7% |
Uncovered Elements: 1 (12) |
Complexity: 2 |
Complexity Density: 0.22 |
|
| 33 |
|
final class KeyStrokeMappings { |
| 34 |
|
|
|
|
|
| 90.9% |
Uncovered Elements: 1 (11) |
Complexity: 2 |
Complexity Density: 0.22 |
|
| 35 |
2710
|
static Collection<KeyStrokeMapping> defaultMappings() {... |
| 36 |
2710
|
List<KeyStrokeMapping> mappings = new ArrayList<KeyStrokeMapping>(); |
| 37 |
2710
|
mappings.add(mapping('\b', VK_BACK_SPACE, NO_MASK)); |
| 38 |
2710
|
mappings.add(mapping('', VK_DELETE, NO_MASK)); |
| 39 |
2710
|
mappings.add(mapping('\n', VK_ENTER, NO_MASK)); |
| 40 |
2710
|
if (isWindows()) mappings.add(mapping('\r', VK_ENTER, NO_MASK)); |
| 41 |
2710
|
mappings.add(mapping('', VK_ESCAPE, NO_MASK)); |
| 42 |
2710
|
mappings.add(mapping('\t', VK_TAB, NO_MASK)); |
| 43 |
2710
|
return unmodifiableList(mappings); |
| 44 |
|
} |
| 45 |
|
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 46 |
|
private KeyStrokeMappings() {}... |
| 47 |
|
} |