mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Don't trigger a key event if a key with the same associated char was pressed (#13773)
This commit is contained in:
parent
9f47e123d2
commit
d57c936b08
2 changed files with 11 additions and 2 deletions
|
@ -38,7 +38,9 @@ public:
|
|||
|
||||
bool operator==(const KeyPress &o) const
|
||||
{
|
||||
return (Char > 0 && Char == o.Char) || (valid_kcode(Key) && Key == o.Key);
|
||||
if (valid_kcode(Key) && valid_kcode(o.Key))
|
||||
return Key == o.Key;
|
||||
return Char > 0 && Char == o.Char;
|
||||
}
|
||||
|
||||
const char *sym() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue