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

Method apply_ctrl

srcs/juloo.keyboard2/KeyModifier.java:313–324  ·  view source on GitHub ↗
(KeyValue k)

Source from the content-addressed store, hash-verified

311 }
312
313 private static KeyValue apply_ctrl(KeyValue k)
314 {
315 if (_modmap != null)
316 {
317 KeyValue mapped = _modmap.get(Modmap.M.Ctrl, k);
318 // Do not return the modified character right away, first turn it into a
319 // key event.
320 if (mapped != null)
321 k = mapped;
322 }
323 return turn_into_keyevent(k);
324 }
325
326 private static KeyValue turn_into_keyevent(KeyValue k)
327 {

Callers 1

modifyMethod · 0.95

Calls 2

turn_into_keyeventMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected