Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
famubu | 06baace30e |
19
client.go
19
client.go
|
@ -181,11 +181,24 @@ func (c *client) TakeControlInput() {
|
|||
c.ClearMessage()
|
||||
distance := c.Height - c.Height/4
|
||||
c.Scroll(-distance)
|
||||
|
||||
case 'f':
|
||||
// Scroll down 100%
|
||||
c.ClearMessage()
|
||||
distance := c.Height
|
||||
c.Scroll(distance)
|
||||
case 'b':
|
||||
// Scroll up 100%
|
||||
c.ClearMessage()
|
||||
distance := c.Height
|
||||
c.Scroll(-distance)
|
||||
|
||||
|
||||
case 'U':
|
||||
// Move up a directory for the current host
|
||||
url := c.PageState.History[c.PageState.Position].Location.Full
|
||||
c.Visit(UpOneDir(url))
|
||||
case 'b', 'h':
|
||||
case 'H': // case 'b', 'h':
|
||||
// Go back
|
||||
c.ClearMessage()
|
||||
err := c.PageState.NavigateHistory(-1)
|
||||
|
@ -211,7 +224,7 @@ func (c *client) TakeControlInput() {
|
|||
// Toggle the bookmark browser
|
||||
c.BookMarks.ToggleOpen()
|
||||
c.Draw()
|
||||
case 'f', 'l':
|
||||
case 'L': // case 'f', 'l':
|
||||
// Go forward
|
||||
c.ClearMessage()
|
||||
err := c.PageState.NavigateHistory(1)
|
||||
|
@ -1276,4 +1289,4 @@ func getMaxWidth(options map[string]string) int {
|
|||
out = 10
|
||||
}
|
||||
return out
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue