lusakasa / saka-key

A keyboard interface to the web
https://key.saka.io
MIT License
861 stars 70 forks source link

Feature request: Improve handling of (FFox?) location bar. #116

Open ChemicalRascal opened 6 years ago

ChemicalRascal commented 6 years ago

Something notable in VimFx (which I know isn't what you want to hear at the start of a feature request, but bare with me) was the handling of the location bar: the location bar could be brought to focus with a keybinding, and this focus could be dismissed by hitting ESC (which I don't think was actually customisable). Indeed, swapping the focus away from the location bar doesn't seem to be possible with saka-key.

jbylsma commented 6 years ago

For the unfocus with Esc, I think that this changed with FF57; I'm struggling with it now after the upgrade.

I found a related Bugzilla issue at Pressing ESCAPE in location bar should return focus to main pane. Not much in work, but there is a mention of using F6 to get out. According to Mozilla's Keyboard shortcuts support page, F6 triggers "Select Location Bar" and "Move to Next Frame". Maybe there's some hope that this is triggerable.

ChemicalRascal commented 6 years ago

It's not FF57, I'm running FF 56.0.2.

I should probably have mentioned that, actually. Darn.

ChemicalRascal commented 6 years ago

Actually, this might be related to #112.

ChemicalRascal commented 6 years ago

It should be noted that, furthermore, the bugzilla mention of F6 isn't quite feature-parity with hitting escape -- if this is something that VimFx is specifically doing, they're actually doing more than just that, as ESC doesn't result in the main frame explicitly selected (there's no marching ants around the window).

Which, I know, is the smallest complaint to have, but still. There's some distinction in behaviour at some level, though, which might be relevant.

eejdoowad commented 6 years ago

Unfortunately, it's no possible with available webextension APIs. See #85.

FichteFoll commented 6 years ago

In case this becomes possible in the future, I'd also like to request a command to focus the location bar and move the caret to the end instead of selecting everything. I used this frequently in VimFx.

I'll resort to Ctrl-l for now.