1
0
mirror of https://github.com/makew0rld/amfora.git synced 2024-06-15 19:15:24 +00:00

Add alt-arrows for history nav - fixes #23

This commit is contained in:
makeworld 2020-06-28 21:06:58 -04:00
parent 6b1882f1a4
commit 293a1a1db0
3 changed files with 17 additions and 2 deletions

View File

@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Added
- Alt-Left and Alt-Right for history navigation (#23)
### Fixed
- Actual unicode bullet symbol is used for lists: U+2022
- Performance when loading very long cached pages improved (#26)

View File

@ -190,6 +190,18 @@ func Init() {
return event
}
// History arrow keys
if event.Modifiers() == tcell.ModAlt {
if event.Key() == tcell.KeyLeft {
histBack()
return nil
}
if event.Key() == tcell.KeyRight {
histForward()
return nil
}
}
switch event.Key() {
case tcell.KeyCtrlT:
NewTab()

View File

@ -13,8 +13,8 @@ Esc|Leave the help
Arrow keys, h/j/k/l|Scroll and move a page.
Tab|Navigate to the next item in a popup.
Shift-Tab|Navigate to the previous item in a popup.
b|Go back a page
f|Go forward a page
b, Alt-Left|Go back a page
f, Alt-Right|Go forward a page
g|Go to top of document
G|Go to bottom of document
spacebar|Open bar at the bottom - type a URL or link number