Skip to content

Prev/Next keyboard shortcuts not working properly #910

@brainplot

Description

@brainplot

Hi, I'm currently reading the book The Rust Programming Language and I decided to build it from source checking out the latest version from the official repository.
I installed mdBook via cargo install mdbook - without specifying any version number - and I got mdBook v0.2.3; then I opened the book in my browser with:

mdbook build --open

and I immediately noticed that the left and right arrow keys weren't working as they're supposed to.
I find those shortcuts really convenient since I try to avoid taking my hands off the keyboard as much as possible.

Almost as a desperate attempt to get those shortcuts working, I tried to install mdbook directly from this repository with the following command:

cargo install --git https://github.com/rust-lang-nursery/mdBook.git mdbook

with no luck. It produced a better looking book but those keyboard shortcuts were still not working :)

P.S. I should mention that in the online version of the book, those same keyboard shortcuts allow me switch between pages properly so I don't think it's a problem with my environment or browser.
The shortcuts also work properly for the book that opens up when I run:

rustup doc --book

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions