nakijun / morisoliver

Automatically exported from code.google.com/p/morisoliver
0 stars 0 forks source link

Key mappings for certain buttons/tools/menus do not work #93

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I can't get 5 things to work, no errors in Firebug: 

1) To give focus to the Comment tool I have set up in toolConfig_default.js as:

        toolSettings.commentTool.keyMap = {                                     // not required
                "ctrl":true,                    // not required if false
                "alt": true,                    // not required if false
                "key": "c"
        };

I don't see topToolBar_keyMaps.push in map.js - I tried adding it, but it 
didn't do anything. 

2) To give focus to the Draw tool I have set up in toolConfig_default.js as:

        toolSettings.editTool.keyMap_draw = {                                   // not required
                "ctrl":true,                    // not required if false
                "alt": true,                    // not required if false
                "key": "d"
        };

I don't see topToolBar_keyMaps.push in map.js - I tried adding it, but it 
didn't do anything. 

3) To give focus to the Edit tool I have set up in toolConfig_default.js as:

        toolSettings.editTool.keyMap_edit= {                                   // not required
                "ctrl":true,                    // not required if false
                "alt": true,                    // not required if false
                "key": "e"
        };

I don't see topToolBar_keyMaps.push in map.js - I tried adding it, but it 
didn't do anything. 

4) To give focus to the prevExtent button I have set up in 
toolConfig_default.js as:

        toolSettings.navigationTools.prevExtent = {};
        toolSettings.navigationTools.prevExtent.keyMap =  {                                     // not required
                "ctrl":true,                    // not required if false
                "alt": true,                    // not required if false
                "key": "r"
        };

Looked in map.js they don't have handlers?  I don't understand.

5) To give focus to the nextExtent button I have set up in 
toolConfig_default.js as:

        toolSettings.navigationTools.nextExtent = {};
        toolSettings.navigationTools.nextExtent.keyMap =  {                                     // not required
                "ctrl":true,                    // not required if false
                "alt": true,                    // not required if false
                "key": "n"
        };

Looked in map.js they don't have handlers?  I don't understand.

These are an issue of "take up by Windows 7" I don't think, because when I try 
to substitute another letter that works for another tool they still doesn't 
work. 

Original issue reported on code.google.com by Aleda.Fr...@state.ma.us on 21 Nov 2011 at 6:45