Custom Scroll Bar Logic

We have an infinite sc[quote=“rupert, post:9, topic:6403”]
The only other thing I would like to do is to override the arrow key and page up/down events, so that they always scroll by an exact integer number of lines.
[/quote]

If you are writing a text editor I might be worth capturing all keyboard events to have full control of what is going on, specially if it is going to be an advanced text editor. Check elmMPS, for instance; I think that it would be impossible to create it without taking full control of use input.