The MU forums have moved to WordPress.org

JavaScript: onKeyPress() issue (2 posts)

  1. skcsknathan001
    Member
    Posted 17 years ago #

    I have installed the WordPressMU and all functions are working. Subdomains too. Able to create new subdomains [blogs] and all.

    For that Thanks a bunch guys. I never thought it would be this easy.

    Alright, now I want to have a JavaScript to catch the key pressed in the "Title" input text field in the "post-new.php".

    onKeyDown works, onKeyUp works.
    But onKeyPress DOES NOT work! the event is NOT even fired. I don't know why that event is not fired! Is it something already in "post-new.php" prevents it from executing?

    Can anybody help me please!

  2. skcsknathan001
    Member
    Posted 17 years ago #

    I have a JavaScript function that replaces certain key pressed by the user to different keys [localizing]. Now I found that there is already "onkeypress" even captured by the tiny_mce JavaScript file for the rich text editor. I tried to include my onkeypress function inside there, but it doesn't give me the right results.

    my JavaScript calles like onkeypress = "return jsFunction(this, event)".

    Now can anybody help me how to use this or insert this into the already existing onkeypress function [which has many conditions and many "returns" inside the tiny_mce javascript.

    Can somebody help me please!! Thanks a lot.

About this Topic

  • Started 17 years ago by skcsknathan001
  • Latest reply from skcsknathan001