miniflux/internal
Robert Lützner facf38955c Add 'Enter' key as a hotkey to open selected item
There are a few things that need to be done, to make this work.

First, we need to register `Enter` as another hotkey that opens the
selected item.

However, by default the `KeyboardHandler` will override all default
actions. That might make sense for any other key, but for the `Enter`
key, we want to keep the default behavior (i.e. follow a selected link
or press a button). So for this single key event, we do not call
`preventDefault()`.

I see this as unproblematic for the following reasons.

1. With the changes from #2348, when we're in a list of items (articles,
   categories, feeds), there is no link selected. This is what made the
   `Enter` key work _implicitly_ in the past. With nothing selected, the
   `Enter` key will do nothing by default.
2. If we have **any** link selected (including when we are in a view
   with a list of selectable items), we'll get the default action of
   `Enter` (i.e. follow a link), which is exactly what we had before.

Lastly, we need to update the list of keyboard shortcuts displayed when
pressing `?`.

This fixes #2366.
2024-02-21 20:02:58 -08:00
..
api Fix default User-Agent regression 2023-11-18 20:57:47 +01:00
cli Fix incorrect condition 2024-01-11 19:04:50 -08:00
config Add FORCE_REFRESH_INTERVAL config option 2024-01-02 18:33:15 -08:00
crypto Add generic webhook integration 2023-09-09 13:11:42 -07:00
database Add Readeck integration 2024-02-21 19:57:34 -08:00
fever Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
googlereader Google Reader API: Allow rename and move feed at the same time 2023-12-01 17:50:01 -08:00
http Fix inaccessible metrics endpoint when listening on Unix socket 2023-12-06 19:52:33 -08:00
integration Add Readeck integration 2024-02-21 19:57:34 -08:00
locale Add Readeck integration 2024-02-21 19:57:34 -08:00
metric Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
model Add Readeck integration 2024-02-21 19:57:34 -08:00
oauth2 Implement structured logging using log/slog package 2023-09-24 22:37:33 -07:00
proxy Rename internal url package to avoid overlap with net/url 2023-08-13 19:57:04 -07:00
reader Allow filtering feeds on entry.Author 2024-01-31 19:42:07 -08:00
storage Add Readeck integration 2024-02-21 19:57:34 -08:00
systemd Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
template Add 'Enter' key as a hotkey to open selected item 2024-02-21 20:02:58 -08:00
tests Add /v1/version endpoint 2023-10-08 15:53:24 -07:00
timezone Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
ui Add 'Enter' key as a hotkey to open selected item 2024-02-21 20:02:58 -08:00
urllib Rename internal url package to avoid overlap with net/url 2023-08-13 19:57:04 -07:00
validator Refactor HTTP Client and LocalizedError packages 2023-10-22 13:09:30 -07:00
version Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
worker Improve error log message in worker 2023-11-08 19:58:56 +00:00