Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Tab index with firefox issue

Tab index with firefox issue

Scheduled Pinned Locked Moved ASP.NET
helpdatabase
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rakeshs312
    wrote on last edited by
    #1

    Hi All, When i am hitting Enter key after focused to a button with tab key , nothing is happening , but when i am hitting spacebar ,it is working (in Firefox) . What will be the issue . Please help Thanks Rks

    N J C 3 Replies Last reply
    0
    • R rakeshs312

      Hi All, When i am hitting Enter key after focused to a button with tab key , nothing is happening , but when i am hitting spacebar ,it is working (in Firefox) . What will be the issue . Please help Thanks Rks

      N Offline
      N Offline
      n podbielski
      wrote on last edited by
      #2

      You should ask this question to folks at Mozilla or at least add some code or link to demo AND version of browser.

      No more Mister Nice Guy... >: |

      R 1 Reply Last reply
      0
      • N n podbielski

        You should ask this question to folks at Mozilla or at least add some code or link to demo AND version of browser.

        No more Mister Nice Guy... >: |

        R Offline
        R Offline
        rakeshs312
        wrote on last edited by
        #3

        These are the buttons and UseSubmitBehavior will not help . Firefox version is 16.0.2

        1 Reply Last reply
        0
        • R rakeshs312

          Hi All, When i am hitting Enter key after focused to a button with tab key , nothing is happening , but when i am hitting spacebar ,it is working (in Firefox) . What will be the issue . Please help Thanks Rks

          J Offline
          J Offline
          jkirkerx
          wrote on last edited by
          #4

          Are you asking about using the enter button to submit a form? If so, you have to wrap the area in a panel, and set the panels default button ID for submit. Then the content in that area, if the cursor is in the textbox, will fire the assigned button. If the cursor is not in a element within the panel, nothing will fire.

          1 Reply Last reply
          0
          • R rakeshs312

            Hi All, When i am hitting Enter key after focused to a button with tab key , nothing is happening , but when i am hitting spacebar ,it is working (in Firefox) . What will be the issue . Please help Thanks Rks

            C Offline
            C Offline
            CommDev
            wrote on last edited by
            #5

            You can try this:

            <script>
            document.onkeydown=function(event)
            {
            e = event ? event :(window.event ? window.event : null);
            if(e.keyCode==13){
            //执行的方法
            alert('回车检测到了');
            }
            }
            </script>

            Good luck. :laugh:

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups