When using the keyboard short cut the following happens:
- Page is scrolled down to the height of preview button
- As soon as the preview is loaded it's scrolled up
If preview is clicked a second time:
- Old preview content is display:none -> page jumps
- New content comes in -> page jumps
The provided patch fixes that irritating behaviour. Was in use at commonswiki for months.