Mottie / Keyboard

Virtual Keyboard using jQuery ~
http://mottie.github.io/Keyboard/
Other
1.78k stars 723 forks source link

navigation key initial position doesn't work unless alwaysOpen is true #557

Closed stevenrobday closed 7 years ago

stevenrobday commented 7 years ago

with alwaysOpen set to false, when the keyboard becomes visible it does not highlight the key set in navigation position...

    $('#keyboard')
        .keyboard({
        alwaysOpen: false,
        position: {
        of: $(window), // null = attach to input/textarea; use $(sel) to attach elsewhere
        my: 'center bottom',
        at: 'center bottom',
        at2: 'center bottom' // used when "usePreview" is false
     }
    })
        .addNavigation({
        position: [2, 0], // set start position [row-number, key-index]
        toggleMode: true, // true = navigate the virtual keyboard, false = navigate in input/textarea
        focusClass: 'hasFocus' // css class added when toggle mode is on
    });
Mottie commented 7 years ago

Hi @stevenrobday!

Thanks for reporting this problem! I'll have it fixed shortly.

stevenrobday commented 7 years ago

wow! seriously, thank you. I wasn't expecting a response so fast... It's for a leaderboard for an arcade convention here this weekend (I'm finishing up), so again, thank you!