mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add upper case keys to the debug key handler (#45559)
Summary: The CLI of Metro bundler only accepts key presses when the Caps Lock is off. This is somehow inconvenient because the developers might think the Metro bundler doesn't response when the Caps Lock is on. ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [GENERAL] [ADDED] - Add upper case keys to the debug key handler Pull Request resolved: https://github.com/facebook/react-native/pull/45559 Test Plan: n/a Reviewed By: huntie Differential Revision: D60107316 Pulled By: dmytrorykun fbshipit-source-id: 045dcd382d84c4781dff75a1ff913cd3ccc8d288
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c24929c5f4
commit
6390cf67d0
@@ -44,7 +44,7 @@ export default function attachKeyHandlers({
|
||||
};
|
||||
|
||||
const onPress = async (key: string) => {
|
||||
switch (key) {
|
||||
switch (key.toLowerCase()) {
|
||||
case 'r':
|
||||
logger.info('Reloading connected app(s)...');
|
||||
messageSocket.broadcast('reload', null);
|
||||
|
||||
Reference in New Issue
Block a user