How modes work
Who gets your keysPermalink to Who gets your keys#
In most browsers, the page gets your keys first, and the browser only sees the ones the page lets through. Oriel turns that around. Every key reaches Oriel before the page does, and the current mode decides what happens to it. The badge at the right of the status bar always shows which mode you're in.
Badge | How you get there | Where keys go |
|---|---|---|
NAV | When a page loads, or ESC from anywhere | Oriel's commands. Nothing reaches the page. |
PAGE | i, ;e, or clicking into a text field | The page, apart from common browser keys and your PAGE bindings. |
PASS | C-v | The page, every key except ESC. |
HINT | f, F and the ; hints | Hint labels. |
FIND | / or ? | The search text (Linux and macOS only). |
CMD | o, O, :, or the tab list | The prompt. |
Why a page can't take your keysPermalink to Why a page can't take your keys#
Pages move their focus around all the time. A search page puts the cursor in its search box when it loads, and some pages focus a hidden field without showing you anything. If Oriel switched to PAGE whenever a page focused a text field, any page could quietly take over keys like f and o.
So Oriel only enters PAGE because of something you did: pressing i, picking a field with ;e, or clicking into one. A page focusing a field on its own changes nothing, and you stay in NAV until you decide otherwise.
Clicking anything else, like a link, a button or a stretch of text, leaves you in NAV, so your keys keep working the way they did before the click. That holds inside embedded frames from other sites too. A click into a text field there enters PAGE as usual. If Oriel can't tell what a click in such a frame focused, it stays in NAV and the status bar says frame focused: i to type, so you can decide.
While you're in PAGE, the status bar says PAGE: typing; ESC for NAV, and ESC takes you back.
PAGE and PASSPermalink to PAGE and PASS#
PAGE and PASS both send keys to the page, and the difference is in the keys Oriel keeps. In PAGE, Oriel keeps ESC and C-g to take you back to NAV, the common Alt-arrow navigation keys, and any keys you've bound in PAGE yourself. Everything else, including editing keys like C-w and C-u, goes to the page. In PASS, Oriel keeps only ESC.
In macOS PAGE mode, Command-V pastes into the focused field. Command-C, Command-X, Command-A and Command-Z copy, cut, select all and undo through the page's native editor. On Linux and Windows, use Control-V to paste.
PASS is for pages with keyboard shortcuts of their own, like a web mail client or an online editor. Press C-v, and those shortcuts work exactly as the page intends, including the ones that would clash with Oriel's. Press ESC when you're done.
Keys you haven't boundPermalink to Keys you haven't bound#
In PAGE and PASS, a key that has no binding goes on to the page, which is what lets you type. In NAV and HINT, an unbound key does nothing. In CMD and FIND, it's typed into the prompt.
Bindings need the exact modifiers. If C-r is bound, Control and r reloads, but Control, Alt and r together is a different key, and in PAGE it goes on to the page.