<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Keyboard Navigation '-' key not working in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/keyboard-navigation-key-not-working/m-p/152165#M14168</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i ran a quick test in both Chrome and IE9 on my Windows 7 machine with the following &lt;/SPAN&gt;&lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer?f=jsapi"&gt;test page&lt;/A&gt;&lt;SPAN&gt; and for me only the +/- on the numeric keypad can be used to zoom the map.&amp;nbsp; even if i hold down SHIFT and click the +/= button on the main keyboard, the map does not zoom in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how are you getting the map to zoom in using the + on the main keyboard?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Nov 2012 20:16:21 GMT</pubDate>
    <dc:creator>JohnGravois</dc:creator>
    <dc:date>2012-11-05T20:16:21Z</dc:date>
    <item>
      <title>Keyboard Navigation '-' key not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/keyboard-navigation-key-not-working/m-p/152164#M14167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;On ArcGIS Online (and my own application unfortunately), make the map element active. You will find that most of the keyboard navigation is working as documented but the '-' button in the main part of the keyboard to zoom out is not. On the Numeric keypad, the '+', '-' and arrow keys work as documented. In the main part of the keyboard, the '+' and arrow keys work, but the '-' key doesn't. This is problematic when working on a keyboard without a Numeric keypad as my colleague does (and really the only reason we noticed this).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jtm&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 17:29:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/keyboard-navigation-key-not-working/m-p/152164#M14167</guid>
      <dc:creator>JoanneMcGraw</dc:creator>
      <dc:date>2012-11-05T17:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Keyboard Navigation '-' key not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/keyboard-navigation-key-not-working/m-p/152165#M14168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i ran a quick test in both Chrome and IE9 on my Windows 7 machine with the following &lt;/SPAN&gt;&lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer?f=jsapi"&gt;test page&lt;/A&gt;&lt;SPAN&gt; and for me only the +/- on the numeric keypad can be used to zoom the map.&amp;nbsp; even if i hold down SHIFT and click the +/= button on the main keyboard, the map does not zoom in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how are you getting the map to zoom in using the + on the main keyboard?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 20:16:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/keyboard-navigation-key-not-working/m-p/152165#M14168</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2012-11-05T20:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Keyboard Navigation '-' key not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/keyboard-navigation-key-not-working/m-p/152166#M14169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We were working in Firefox 16 where we are able to simply use Shift-'+' to zoom in. I wasn't aware this was an anomaly, but have just checked IE9 and see that the Shift-'+' doesn't do the same trick there. Although, in both Firefox and IE9 both arrow keys do the trick (i.e., those in the numeric keypad and those in the main keyboard).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Isn't this a problem for people whose keyboard's don't have a numeric keyboard (like my colleague's)? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In those cases, there would be no keyboard navigation provided by default, contrary to the documentation which suggests users should be able to "Use + key to zoom in a level" and "Use - key to zoom out a level". How would they know that that is only the '+' or '-' key on the numeric keyboard and not the one they see on the main keyboard? Particularly if they don't have a numeric keypad on their keyboard? It would just seem like a bug...as it did to us.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jtm&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 13:08:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/keyboard-navigation-key-not-working/m-p/152166#M14169</guid>
      <dc:creator>JoanneMcGraw</dc:creator>
      <dc:date>2012-11-06T13:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Keyboard Navigation '-' key not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/keyboard-navigation-key-not-working/m-p/152167#M14170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Isn't this a problem for people whose keyboard's don't have a numeric keyboard (like my colleague's)?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Use numlock?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 13:41:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/keyboard-navigation-key-not-working/m-p/152167#M14170</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-11-06T13:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Keyboard Navigation '-' key not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/keyboard-navigation-key-not-working/m-p/152168#M14171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Numlock would only be available if the user has a numeric keypad on their keyboard. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If they do not...? (and that is really the point of this question)...if they do not, how do they get access to keyboard navigation? And, really, why wouldn't the '+' and '-' keys in the main keyboard work by default anyway?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Having said all that, I'm not really that concerned about it. It's a good post to have kicking around, though, just in case anyone else thinks, as we did, that there was a problem with the JSAPI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jtm&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 14:38:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/keyboard-navigation-key-not-working/m-p/152168#M14171</guid>
      <dc:creator>JoanneMcGraw</dc:creator>
      <dc:date>2012-11-06T14:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Keyboard Navigation '-' key not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/keyboard-navigation-key-not-working/m-p/152169#M14172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Numlock would only be available if the user has a numeric keypad on their keyboard. &lt;BR /&gt;&lt;BR /&gt;If they do not...? (and that is really the point of this question)...if they do not, how do they get access to keyboard navigation? And, really, why wouldn't the '+' and '-' keys in the main keyboard work by default anyway?&lt;BR /&gt;&lt;BR /&gt;Having said all that, I'm not really that concerned about it. It's a good post to have kicking around, though, just in case anyone else thinks, as we did, that there was a problem with the JSAPI.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;jtm&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Was only partially serious...does anyone use a keyboard for anything other than text entry these days anyway? &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You'll find most (if not all??) laptops have a numlock button somewhere and if you look closely you'll see the little numbers printed next to the letters on the appropriate keys.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The key presses are probably being detected using the keycodes 107/109...pressing the minus key on the 'main' keyboard raises a different keycode...one that's not being checked for...detecting a plus on the 'main' keyboard is trickier (but not impossible) because, on some keyboards, it requires two keys to be used together.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 14:47:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/keyboard-navigation-key-not-working/m-p/152169#M14172</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-11-06T14:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Keyboard Navigation '-' key not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/keyboard-navigation-key-not-working/m-p/152170#M14173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here in Canada, all federal government web sites are required to provide keyboard access to web pages. See &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://en.wikipedia.org/wiki/Web_Content_Accessibility_Guidelines" rel="nofollow" target="_blank"&gt;http://en.wikipedia.org/wiki/Web_Content_Accessibility_Guidelines&lt;/A&gt;&lt;SPAN&gt; "The landmark 2010/2012 Jodhan decision has caused the Canadian Federal government to require all online web pages, documents and videos available externally and internally to meet the accessibility requirements of WCAG 2.0." One of those requirements is the ability to navigate the components in a page with only the keyboard.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To address this, we've implemented our own handler for the Shift-'+' and '-' on the main keyboard for the two browsers we are required to support (IE and FF). It provides the necessary "Accessibility" standards to pass our legal responsibilities in this respect. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My colleague's keyboard, btw, is a wireless Logitech for his desktop. There are no little numbers printed next to the letters on the appropriate keys as one would typically see on a laptop, unfortunately.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;It should be noted that the keyCode to listen for is different in different browsers for the same symbol/character, among other things including those noted by geos_rfleet above. There's a good article that talks about keyboard events at: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://unixpapa.com/js/key.html" rel="nofollow" target="_blank"&gt;http://unixpapa.com/js/key.html&lt;/A&gt;&lt;SPAN&gt;" (&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://unixpapa.com/js/key.html" rel="nofollow" target="_blank"&gt;http://unixpapa.com/js/key.html&lt;/A&gt;&lt;SPAN&gt;). It's not 100% correct but certainly identifies some of the things that need to be thought about if anyone out there has a mind to implement same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jtm&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 15:58:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/keyboard-navigation-key-not-working/m-p/152170#M14173</guid>
      <dc:creator>JoanneMcGraw</dc:creator>
      <dc:date>2012-11-06T15:58:26Z</dc:date>
    </item>
  </channel>
</rss>

