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

Method apply_fn

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

Source from the content-addressed store, hash-verified

236 }
237
238 private static KeyValue apply_fn(KeyValue k)
239 {
240 if (_modmap != null)
241 {
242 KeyValue mapped = _modmap.get(Modmap.M.Fn, k);
243 if (mapped != null)
244 return mapped;
245 }
246 String name = null;
247 switch (k.getKind())
248 {
249 case Char:
250 case String:
251 KeyValue r = ComposeKey.apply(ComposeKeyData.fn, k);
252 return (r != null) ? r : k;
253 case Keyevent: name = apply_fn_keyevent(k.getKeyevent()); break;
254 case Event: name = apply_fn_event(k.getEvent()); break;
255 case Placeholder: name = apply_fn_placeholder(k.getPlaceholder()); break;
256 case Editing: name = apply_fn_editing(k.getEditing()); break;
257 }
258 return (name == null) ? k : KeyValue.getKeyByName(name);
259 }
260
261 private static String apply_fn_keyevent(int code)
262 {

Callers 2

modifyMethod · 0.95
apply_gestureMethod · 0.95

Calls 12

applyMethod · 0.95
apply_fn_keyeventMethod · 0.95
apply_fn_eventMethod · 0.95
apply_fn_placeholderMethod · 0.95
apply_fn_editingMethod · 0.95
getKeyByNameMethod · 0.95
getKindMethod · 0.80
getKeyeventMethod · 0.80
getEventMethod · 0.80
getPlaceholderMethod · 0.80
getEditingMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected