Ticket #2264 (new feature)

Opened 4 years ago

allow stop propagation on KeyboardDefaults control to prevent browser scrolling

Reported by: brentp Owned by:
Priority: minor Milestone: 2.13 Release
Component: Control.KeyboardDefaults Version: SVN
Keywords: Cc:
State:

Description

when using the KeyboardDefaults control, if the window is able to scroll, it will when the arrow keys are used for navigation. this patch allows construction of the control with:

var kctrl = new OpenLayers.Control.KeyboardDefaults({stop: true});

which will stop event propagation and prevent browser scrolling during keyboard navigation.

Attachments

keyboarddefaults.stop.diff Download (2.1 KB) - added by brentp 4 years ago.
patch with test.

Change History

Changed 4 years ago by brentp

patch with test.

Note: See TracTickets for help on using tickets.