mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 09:06:23 +01:00
Don't trigger auto list if meta/ctrl+enter
This commit is contained in:
parent
201ca6ce4a
commit
707b51a1a0
1 changed files with 1 additions and 1 deletions
|
@ -1558,7 +1558,7 @@ const Textarea = forwardRef((props, ref) => {
|
|||
onKeyDown={(e) => {
|
||||
// Get line before cursor position after pressing 'Enter'
|
||||
const { key, target } = e;
|
||||
if (key === 'Enter') {
|
||||
if (key === 'Enter' && !(e.ctrlKey || e.metaKey)) {
|
||||
try {
|
||||
const { value, selectionStart } = target;
|
||||
const textBeforeCursor = value.slice(0, selectionStart);
|
||||
|
|
Loading…
Reference in a new issue