We have a user that is reporting when they enter data in the Edit widget, entering Phone numbers (with dashes) when they hit dash sometimes the map zooms in and out.
Is that normal behavior?
Ken,
Good question. I would think yes, but I will have to pay attention the next time I see this happen.
Ken and Robert,
I think what we are observing is
1. Occassionally when an input box is activate, and the mouse is over the input box, +- still zoom the map.
2. There is also a guess i difference of opinion on what SHOULD happen. for me, if the cursor is active in an input, map navigation should never occur. even if i move my mouse off the input and over the map, the "activate input" should override. Map navigation should not resume until i purposely click off the input or onto the map.
I can confirm if i move the mouse off the popup it will enable keyboard navigation. if there anyway to disable this? its so annoying
Jeff,
Here is a little change you can make to the Edit Widget.js to disable keyboard navigation when the Edit widgets popup is showing and re-enable when it is hidden (lines 7 and 13 added to the bellow functions):
_onEditorPopupShow: function() {
// disable event for editorATI
var currentFeature = this.editor.attributeInspector._currentFeature;
//var currentLayer = currentFeature.getLayer();
this._disableToAnswerEventForEditorATI();
this._createRelatedRecordsEditor(currentFeature);
this.map.disableKeyboardNavigation();
},
_onEditorPopupHide: function() {
// enable event for editorATI
this._enableToAnswerEventForEditorATI();
this.map.enableKeyboardNavigation();
},
I appreciate that. Ill add it to my portal hack list
Jeffrey Pace
Tech Lead
Geographic Information Services Division
Information Technology Department
Manatee County Government
1112 Manatee Avenue West
Bradenton, FL 34205
jeff.pace@mymanatee.org
(941)748-4501 x3870