Sublime Forum

Holding page up/down does not repeat the scrolling

#1

Hi. I don’t understand why this isn’t working like it should.

I’m usually working with very large files so it’s necessary to have page up/down keys that work like intended.

But it’s currently a “button mashing” contest to jump X pages up or down.

Any help would be appreciated.

0 Likes

#2

It seems to work fine for me on Windows, Linux and MacOS (where the keys are Fn+Shift+Up and Fn+Shift+Down if you don’t have a full keyboard available).

Off the top of my head the only obvious scenarios where PageUp and PageDown would work when you press them once but not repeat when you hold them down would be if you accidentally enabled one of the OS Accessibility options that disables key repeat.

Do those keys work as expected in other applications? Does quitting and restarting Sublime help?

You can try opening the Sublime console with Ctrl+` and entering the following commands:

sublime.log_commands(True)
sublime.log_input(True)

Once you do that, with the cursor still in the console input, alternate pressing and holding each of those keys in turn to see what it says. Even though there’s nothing to scroll, you should see sequences like the following (repeating when you hold the key):

key evt: pageup
command: move {"by": "pages", "forward": false}
key evt: pagedown
command: move {"by": "pages", "forward": true}

Regardless of the command bound to a key or whether or not it does anything, Sublime should log key events for keys (including repeats) so if you don’t see that happening, I would guess that something external is blocking keyboard repeats.

1 Like

#3

The keys work normally in windows Notepad - so I’m confused as to why they don’t work in Sublime Text.

I have disabled all “ease of access” crap already.

Edit: reapplying settings in “ease of access center” fixed it. Looks like another bug with windows 10 :angry:

0 Likes