A way to create modal interfaces with filters.
A live demo can be found in Krabby.
Add modal.js
to your project.
A minimal configuration to get started:
const modal = new Modal
modal.enable('Text', 'Command')
modal.map('Command', ['KeyJ'], ({ repeat }) => scroll.down(repeat), 'Scroll down', 'Scroll')
modal.map('Command', ['KeyK'], ({ repeat }) => scroll.up(repeat), 'Scroll up', 'Scroll')
Note: The commands scroll with scroll.js.
You can find some examples in Krabby.
Read the documentation for a complete reference.