News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

Num pad types digits twice

Started by Rollmaterial, December 28, 2020, 12:08:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rollmaterial

Digits typed through the num pad are entered twice, e.g. typing numpad 4 enters "44".

jamespetts

I can confirm this, at least on a Linux platform. I think that this is new since the merge from Standard. Can I check what platform that you are using?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Sirius

I can confirm this on Linux.
It was introduced with a recent commit, likely the merge from standard.

Rollmaterial


Ranran on indefinite leave

numpad_always_moves_map = 0
Is there the following line in simconf.tab?
Without this (that is, when numpad_always_moves_map = 1), it seems that you can't enter numbers with numpad. I don't know if this is the same behavior as standard.
Introduced in r9298.

jamespetts

Quote from: Ranran on December 28, 2020, 09:52:00 PMnumpad_always_moves_map = 0

This line is set in the default simuconf.tab:


# If set to 1 (default) the numpad will always move the map.
# If active, this does not allow for number entry
numpad_always_moves_map = 0
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Ranran on indefinite leave

Quote from: jamespetts on December 28, 2020, 09:54:31 PMThis line is set in the default simuconf.tab:
In my environment, when it is 0, numpad will enter the numbers correctly.
If it is 1, the cursor will move or garbled characters will be entered.