Skip to main content

RamBase Guidelines

Keyboard handling

When a RamBase user press the altGr key (ctrl + alt) a key navigation overlay appears. You can create custom keyhandling for components by mapping an html attribute to a javascript function like this:

<i class="icon-plus" shortcut="S"></i>

vm.focus = function () {
    keyboardManagerService.bind('S', function (el) {
        alert("you pressed S");
    });
};

Note

Remember to inject the keyboardManagerService as an angular service. All keyhandling events has to be bound inside the vm.focus method.