src/net/java/sip/communicator/impl/protocol/jabber/OperationSetDesktopSharingServerJabberImpl.java
/**
     * Process keyboard notification received from remote peer.
     *
     * @param event <tt>KeyboardEvent</tt> that will be regenerated on local
     * computer
     */
Process keyboard notification received from remote peer.
@param event KeyboardEvent that will be regenerated on local
computer
Process keyboard notification received from remote peer . @param event KeyboardEvent that will be regenerated on local computer
public void processKeyboardEvent(KeyEvent event)
    {
        /* ignore command if remote control is not enabled otherwise regenerates
         * event on the computer
         */
        if (hidService != null)
        {
            int keycode = 0;
            /* process immediately a "key-typed" event via press/release */
            if(event.getKeyChar() != 0 && event.getID() == KeyEvent.KEY_TYPED)
            {
                hidService.keyPress(event.getKeyChar());
                hidService.keyRelease(event.getKeyChar());
                return;
            }
            keycode = event.getKeyCode();
            if(keycode == 0)
            {
                return;
            }
            switch(event.getID())
            {
            case KeyEvent.KEY_PRESSED:
                hidService.keyPress(keycode);
                break;
            case KeyEvent.KEY_RELEASED:
                hidService.keyRelease(keycode);
                break;
            default:
                break;
            }
        }
    }
public void processKeyboardEvent ( KeyEvent event ) { /* ignore command if remote control is not enabled otherwise regenerates
         * event on the computer
         */ if ( hidService != null ) { int keycode = 0 ; /* process immediately a "key-typed" event via press/release */ if ( event . getKeyChar ( ) != 0 && event . getID ( ) == KeyEvent . KEY_TYPED ) { hidService . keyPress ( event . getKeyChar ( ) ) ; hidService . keyRelease ( event . getKeyChar ( ) ) ; return ; } keycode = event . getKeyCode ( ) ; if ( keycode == 0 ) { return ; } switch ( event . getID ( ) ) { case KeyEvent . KEY_PRESSED : hidService . keyPress ( keycode ) ; break ; case KeyEvent . KEY_RELEASED : hidService . keyRelease ( keycode ) ; break ; default : break ; } } }
Process keyboard notification received from remote peer.
Process keyboard notification received from remote peer .