Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/component/utils/KeyBindingUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const UserAgent = require('UserAgent');

const isOSX = UserAgent.isPlatform('Mac OS X');

const isSoftNewlineEvent = require('./isSoftNewlineEvent');

const KeyBindingUtil = {
/**
* Check whether the ctrlKey modifier is *not* being used in conjunction with
Expand All @@ -38,6 +40,8 @@ const KeyBindingUtil = {
? !!e.metaKey && !e.altKey
: KeyBindingUtil.isCtrlKeyCommand(e);
},

isSoftNewlineEvent,
};

module.exports = KeyBindingUtil;