Skip to content

Shift-space to go to previous slide? #687

Open
@pjheslin

Description

I'm in the process of trying out Remark to see if it will suit my needs, and so far it looks absolutely perfect. I have one question, though.

From using reveal.js I am accustomed to moving forward with the spacebar and backward with shift-space, but in Remark shift-space seems to go to the next slide rather than the previous one.

The weird thing is that the Remark repo seems to have code to do what I expect, in https://github.com/gnab/remark/blame/develop/src/remark/controllers/inputs/keyboard.js

 case 32: // Space
    if(event.shiftKey){ // Shift+Space
      events.emit('gotoPreviousSlide');

Git blame suggests those lines were added six years ago, but the minified JS file (https://remarkjs.com/downloads/remark-latest.min.js) does not seem to have this code in it. I must be misunderstanding something ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions