Bug #5043
closed$keyval in on keydown returns incorrect value
0%
Description
if you press H on your keyboard, the key value should be 72, not 104.
Updated by Per Amundsen over 4 years ago
Maybe, I know mirc recently changed this, but it also breaks all current on KEYDOWN/KEYUP mirc scripts, it should probably be reverted.
Updated by Oui Ouims over 3 years ago
For once that mIRC does something great and doesn't keep broken behavior for the sake of backward compat, I'm not sure why you wouldn't want to comply.
Multiple mIRC versions has been released since, this change is going nowhere because the previous behavior severely limited the usage of the events.
Thing is, most previous script only ever used these events for key value which didn't not change.
Other scripts which used different key were already broken and people have complained as much. On keydown/up event have been broken in mirc and adiirc since the implementation of it, day 1.
Please fix this or newer scripts can't use such events correctly.
Updated by Per Amundsen over 3 years ago
- Category set to Scripting
- Status changed from New to Resolved
- Assignee set to Per Amundsen
- Target version changed from 3.9 to 4.0
I was waiting to see if it would be reverted because it breaks some scripts I know are in use, but it doesn't seem to be the case, so I have changed it for next beta.
Updated by Oui Ouims over 3 years ago
Thanks for the fix.
Like I said, it can't break scripts more than they already were, these events were broken to start with, anyone claiming that their script is now broken with the fix would only be blind to the fact that their script were broken before, they just wouldn't see it.