How to prevents keyboard close when long press an element - ionic - v6

We are making a chat, specifically we are using ionic v6 with angular.

We have a problem and that is that when we hold down any part of a component view when the keyboard is open, the keyboard closes immediately. When we keep the any element pressed we want to give several functionalities such as: Delete a message, choose an emoji, schedule a message to send it later. but without closing the keyboard.

So that the keyboard does not close when we click, what we do is give focus to an input, but we do not know how to make it so that the keyboard does not close when we hold down anything(long press).