spin
01-09-2011, 01:27 PM
Hello,
today, I noticed that GUI components like e.g. LineEdit do not accept enter presses from the numpad enter key. (This might be the case only on Linux machines). I used this issue to dive a little into the code and created a patch, so that the numpad enter key has the same effect as the "normal" enter key.
As I use only Linux, I did not test this on Windows or OS X (I don't even know if they already accept numpad enter). I did, however, create the numpad enter constant for them as well and just set it to CL_KEY_RETURN, so that the build is not broken and the behaviour should stay the same.
If you have a Windows or OS X machine, it would be great if you could add the correct key codes to the patch.
Cheers,
spin
today, I noticed that GUI components like e.g. LineEdit do not accept enter presses from the numpad enter key. (This might be the case only on Linux machines). I used this issue to dive a little into the code and created a patch, so that the numpad enter key has the same effect as the "normal" enter key.
As I use only Linux, I did not test this on Windows or OS X (I don't even know if they already accept numpad enter). I did, however, create the numpad enter constant for them as well and just set it to CL_KEY_RETURN, so that the build is not broken and the behaviour should stay the same.
If you have a Windows or OS X machine, it would be great if you could add the correct key codes to the patch.
Cheers,
spin