react-native-macos/React
Nick Lockwood 634cdfb76a Removed duplicate key registration bug
Summary:
@public

I was using UIKeyCommand as a key in a dictionary, but it seems iOS wasn't treating identical commands as equal, so it was possible to register the same key command twice, resulting in the command triggering the action multiple times.

I've now created a container object for the key commands, and not relying on undocumented hashing behavior of UIKeyCommand for deduplication any more.

Test Plan: Reload bridge multiple times, then check that the number of registered keys in the command set inside RCTKeyCommands doesn't keep increasing.
2015-06-19 08:13:29 -08:00
..
Base Removed duplicate key registration bug 2015-06-19 08:13:29 -08:00
Executors [ReactNative] Remove RCT_IMPORT_METHOD macro and generate lookup table dynamically 2015-06-15 13:05:52 -08:00
Layout Fixed layout bug 2015-05-13 13:24:36 -07:00
Modules Fixed stickers 2015-06-18 20:31:25 -08:00
React.xcodeproj Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
Views Changed methodQueue to a property 2015-06-19 04:20:39 -08:00