How to understand when the system use autocomplete in textView in Swift - swift

I have TextView and enabled text suggestions. How can I understand when user is writing part of the word and when press Space/Return the system autocomplete the word?
My problem is that I want to change the Font and go to new line when the user press Font changing button on the screen. Now when the button is clicked, the system add the line, the new font, but after that add his autocompletion and override my added line and change my Selected Range.
At the end the cursor is on previous line between the letters of the added autocompleted word and when start typing it is with my new added Font.
P.S.
textView.autocorrectionType = .no
is not working, because the system knows it wants to change the word. The only found solution is
resignFirstResponder()
beginFirstResponder()
in my method. This will make the autocomplete first and after that continue with my method. And yeah, because I make both of them there is no moving keyboard(hide, show), but I want to find better solution

Related

How i can change highlighted area in VSCode after Shift+F12

I try to find hotkey which can help me to change selected area after shift+f12.Let's see example:
I selected this function and after it i click shift+f12 and watch this in special window:
And as you can see, the right side of this block is displayed - all the places where this function is found.
I want to know what hotkey I need to press to move to the area with the code and start editing it:
Please say me how i can make it without mouse:)
P.S. i'm using windows

Multiple keystrokes as autohotkey shortcut

I'm new to AutoHotkey.
I have a specfic need to be achieved in Powerpoint using autohotkey.
Let's say in Powerpoint, I want to change font color.
The normal steps are:
Select the text
Click "Home" > Click "Font Color" > The Font palette gets expanded and I select the color.
Now, I want to make this process quicker as below
Select the text
Press FC (as shortcut from keyboard) and autohotkey should press the following keys Alt+H+FC (Very importantly, if I don't press C immediately after F, then it should get typed as replaced text of highlighted text)
So, my code goes as like this
#SingleInstance, Force
#IfWinActive ahk_exe POWERPNT.EXE ; check whether ppt is the active window
f::
#if keypress c
send, !HFC
#if
return
But, this doesn't work.
I don't where am I making mistake. Could someone help, please
I know this is an autohotkey question, but the quick access toolbar (QAT) in PowerPoint may solve your problem out of the box.
The QAT assigns Alt+1 to the first feature, alt+2 to the second, etc. By customizing the order of buttons on the QAT, you can access features you use often with one key combination.
Instructions
First add the font color button to the QAT: right click the 'font color' button, and click 'add to quick access toolbar'
Change the order of features in the QAT: right click on the QAT - customize quick access toolbar). Use the arrow buttons on the right side to change the ordering.
This is the order I use myself:
This allows me to very quickly align objects on a slide, change background color, outline, and text color, all initiated from the keyboard.

How to start the search process in Visual Studio Code

I can see the search form panel in left side, but, how can I start the search process? there is a field to put the text that I am looking for, but I don't find a button or icon to press and start the search process, I don't want to try pressing the enter button because I don't know if pressing enter will search or it will replace (since there is also a "replace" field)
Regards
Enter will start the search, don't worry. If I remember correctly
Ctrl+alt+enter does the replacement for all and you also have to
confirm before the replacement – FreshD
thanks, I also noticed a small triangle to hide the replace field

MATLAB GUI) Initial Tab selection

I am making a simple GUI that reads some parameters in EditBox and do something.
I have a lot of EditBoxs and it is convenient to move by Tab Button between boxes.
I want the text in the next box to be initially selected by Tab Button so that I don't need to do Ctrl+A and remove the text before typing new strings.
I couldn't find any information from web, and searched in the Property Inspector of Editbox but no luck.
Does anyone know how to do this?
Thanks in advance.

MS Access Form - Enter key not moving to new line

I have an odd issue with a form I have in MS Access. For some reason, when I hit the "enter" key within a text box, the cursor moves to a different text box. What i am looking to happen is for the cursor to simply move to another line within the same text box.
Anyone have any ideas how to correct this?
You can use Ctrl+Enter to enter a new line into any text box.
For a specific text box, you can make the Enter insert a new line instead of moving to another control on the form by changing the text box's Enter Key Behavior property.
That's what I think you're actually looking for, but you would need to set that property for every text box where you want it to happen ... which may be fine for your needs. I mentioned Ctrl+Enter first only because that method works for any text box without changing the default property setting.
Under file, options, client settings, very first one option move after enter and change from next field to next record.