Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Commit aede823

Browse files
Kevin Hawkinsonfacebook-github-bot
authored andcommitted
Exports isSoftNewlineEvent as static method of KeyBindingUtil
Summary: Pull Request resolved: #2045 Differential Revision: D14674391 fbshipit-source-id: 431ba174a820532d9727a7d98ddf3d1da7ffafe6
1 parent 71ef373 commit aede823

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/component/utils/KeyBindingUtil.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
const UserAgent = require('UserAgent');
1515

16+
const isSoftNewlineEvent = require('isSoftNewlineEvent');
17+
1618
const isOSX = UserAgent.isPlatform('Mac OS X');
1719

1820
const KeyBindingUtil = {
@@ -38,6 +40,8 @@ const KeyBindingUtil = {
3840
? !!e.metaKey && !e.altKey
3941
: KeyBindingUtil.isCtrlKeyCommand(e);
4042
},
43+
44+
isSoftNewlineEvent,
4145
};
4246

4347
module.exports = KeyBindingUtil;

0 commit comments

Comments
 (0)