org.foam.orion.client/usecasePlugin/web/orion/commands.js
/*
		 * Process a key event against the provided bindings.
		 */
Process a key event against the provided bindings.
Process a key event against the provided bindings .
function _processKey(event, bindings) {
			for (var id in bindings) {
				if (bindings[id] && bindings[id].keyBinding && bindings[id].command) {
					if (bindings[id].keyBinding.match(event)) {
						var activeBinding = bindings[id];
						var keyBinding = activeBinding.keyBinding;
						if (!keyBinding.domScope || lib.contains(lib.node(keyBinding.domScope), event.target)) {
							if (executeBinding(activeBinding)) {
								lib.stop(event);
								return;
							}
						}
					}
				}
			}
		}
function _processKey ( event , bindings ) { for ( var id in bindings ) { if ( bindings [ id ] && bindings [ id ] . keyBinding && bindings [ id ] . command ) { if ( bindings [ id ] . keyBinding . match ( event ) ) { var activeBinding = bindings [ id ] ; var keyBinding = activeBinding . keyBinding ; if ( ! keyBinding . domScope || lib . contains ( lib . node ( keyBinding . domScope ) , event . target ) ) { if ( executeBinding ( activeBinding ) ) { lib . stop ( event ) ; return ; } } } } } }
Process a key event against the provided bindings.
Process a key event against the provided bindings .
// Check for keys that are scoped to a particular part of the DOM