alter keypress event

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • znndrp

    #1

    alter keypress event

    Hi all,

    I've got a function that captures a keypress event. This is working fine,
    but in some cases I want to fire the same even again but with different
    parameters.

    Example;

    ----------------8<------------------------------------------
    function editor_event(ob jname,runDelay) {
    var editor_obj = document.all["_" +objname+ "_editor"];
    var editEvent = editor_obj.cont entWindow ? editor_obj.cont entWindow.event
    : event;

    var ord = editEvent.keyCo de; // ascii order of key pressed
    var ctrlKey = editEvent.ctrlK ey;
    var altKey = editEvent.altKe y;
    var shiftKey = editEvent.shift Key;

    //more code here...
    }
    ---------------->8------------------------------------------

    If I press a key in a textarea it fires this function. What I want is if the
    var 'shiftKey' is true fire the event again but with the 'shiftKey' property
    'false'

    I think I've got to look at obj.handleEvent (e); but I'm not sure about what
    to do :)

    --
    ,_,
    (O,O)
    ( )
    ---"-"-alex
  • znndrp

    #2
    Re: alter keypress event

    znndrp wrote:[color=blue]
    > Hi all,
    >
    > I've got a function that captures a keypress event. This is working
    > fine, but in some cases I want to fire the same even again but with
    > different parameters.[/color]

    Does really nobody have a clue about this? :(

    --
    ,_,
    (O,O)
    ( )
    ---"-"-alex

    Comment

    • Thomas 'PointedEars' Lahn

      #3
      Re: alter keypress event

      znndrp wrote:
      [color=blue]
      > znndrp wrote:[color=green]
      >> I've got a function that captures a keypress event. This is working
      >> fine, but in some cases I want to fire the same even again but with
      >> different parameters.[/color]
      >
      > Does really nobody have a clue about this? :([/color]

      Do you have no name and valid sender address?


      PointedEars
      --
      Whatever you do will be insignificant,
      but it is very important that you do it.
      -- Mahatma Gandhi

      Comment

      Working...