This works when the code window is centered, and is intended for WPCodeBox 1.+, version 2 makes it obsolete by adding native shortcut keys (e.g. Ctrl+2)