mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 22:52:25 +01:00
Different implementation of KeyPress::operator==
Fixes some key mapping issues.
This commit is contained in:
parent
4547ace59a
commit
1bbfd0b6d2
@ -36,7 +36,8 @@ public:
|
|||||||
|
|
||||||
bool operator==(const KeyPress &o) const
|
bool operator==(const KeyPress &o) const
|
||||||
{
|
{
|
||||||
return valid_kcode(Key) ? Key == o.Key : Char == o.Char;
|
return (Char > 0 && Char == o.Char) ||
|
||||||
|
(valid_kcode(Key) && Key == o.Key);
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *sym() const;
|
const char *sym() const;
|
||||||
|
Loading…
Reference in New Issue
Block a user