change keycode on editable iframe

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Luhana
    New Member
    • Feb 2011
    • 1

    change keycode on editable iframe

    Hi
    is this possible to change keycode for an editable iframe
    let say if user press a = keycode 97 it should display on editor b (keycode =98)

    regards
    for IE I have working code like
    maineditor.even t.keyCode = NewCode(mainedi tor.event.keyCo de);

    but it is not working in chrome or FF
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Get the value entered, stop the default (browser inconsistencies here), and then set the value to the changed character at the cursor position.

    Note: I've not tested, but I would imagine it should work

    Comment

    Working...