www.cendio.com
Bug 5205 - Numeric keys are not resolved as KP_x symbols within a ThinLinc session.
: Numeric keys are not resolved as KP_x symbols within a ThinLinc session.
Status: CLOSED DUPLICATE of bug 400
: ThinLinc
VNC
: 4.2.0
: PC Unknown
: P2 Normal
: 4.9.0
Assigned To:
:
:
:
: 3523
  Show dependency treegraph
 
Reported: 2014-07-01 14:39 by
Modified: 2018-04-23 13:34 (History)
Acceptance Criteria:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From cendio 2014-07-01 14:39:59
After some investigation it seems like KP_x symbols are sent but resolves into
standard number symbols server side.
------- Comment #1 From cendio 2014-07-01 16:40:34 -------
I found this is Xvnc source code:

    /*
     * X11 generally lets shift toggle the keys on the numeric pad
     * the same way NumLock does. This is however not the case on
     * other systems like Windows. As a result, some applications
     * get confused when we do a fake shift to get the same effect
     * that having NumLock active would produce.
     *
     * Until we have proper NumLock synchronisation (so we can
     * avoid faking shift), we try to avoid the fake shifts if we
     * can use an alternative keysym.
     */

And there is a configuration param that toggles this behavior on/off. With
other words it is possible to turn on the fake shift numkey by adding argument
'-AvoidShiftNumLock=0'. An KP_x event will produced using a fake shift numkey.
------- Comment #2 From cendio 2014-07-02 07:51:51 -------
The reason behind this is that VNC doesn't do numlock sync, see bug #400.
------- Comment #3 From cendio 2014-07-03 14:54:15 -------
Relevant upstream commit:

https://github.com/TigerVNC/tigervnc/commit/1753a93da571479a0cc1a90261376d2eb8350890
------- Comment #4 From cendio 2018-04-23 13:34:26 -------

*** This bug has been marked as a duplicate of bug 400 ***