MCPcopy Create free account
hub / github.com/Julow/Unexpected-Keyboard / test

Method test

test/juloo.keyboard2/ModmapTest.java:12–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 public ModmapTest() {}
11
12 @Test
13 public void test()
14 {
15 Modmap mm = new Modmap();
16 mm.add(Modmap.M.Shift, KeyValue.getKeyByName("a"), KeyValue.getKeyByName("b"));
17 mm.add(Modmap.M.Fn, KeyValue.getKeyByName("c"), KeyValue.getKeyByName("d"));
18 Utils.apply(mm, "a", KeyValue.Modifier.SHIFT, "b");
19 Utils.apply(mm, "a", KeyValue.Modifier.FN, "æ");
20 Utils.apply(mm, "c", KeyValue.Modifier.FN, "d");
21 }
22
23 @Test
24 public void keyevent_mappings()

Callers

nothing calls this directly

Calls 3

addMethod · 0.95
getKeyByNameMethod · 0.95
applyMethod · 0.95

Tested by

no test coverage detected