If Esc key is pressed in
MODIFY FILE test
window, Visual FoxPro shows
Discard changes
Yes No
prompt. How can I replace this with
Do you want to save changes to test.txt
Yes No Cancel
prompt ?
A Yes/No/Cancel prompt appears if I click on the close button in the upper right corner of the close window.
Is it possible to force it to appear when I press ESC also ?
Can ON KEY LABEL esc or some custom edit windows command be used or is there some other solution ?
Yes, you could solve it with ON KEY LABEL esc someFunctionCall(). The function has then to display the dialog you desire, and you also have to write the logic whether you pressed Yes, No or Cancel. Also keep in mind, that you have to issue ON KEY LABEL esc again, so the dialog won't show up everywhere.
Another solution would be hitting CTRL+S before you press Escape. With another dialog you have to move the mouse or press another button anyways, so there is no time to safe here.
Related
When inputting code the text input box of the debug console, There is completions options, but after clicking enter on keyboard, it will not be completed automatically. You need to manually click the completion item with the left mouse button to complete it.So could some optimization be made here. Thank You!
enter image description here
enter image description here
Use the tab key to accept what is highlighted in the intellsense drop down in the console.
You can also use the up and down arrow keys to scan through the list.
Hopefully that will keep you from having to switch to mouse. :)
When you come from a tool window and press Ctrl+Tab to go back to an editor window, the cursor is gone and replaced with a "line cursor" that only allows to scroll up/down but not enter text. Is there a key I can press to get the normal cursor back?
(This is especially useful to quickly compile my code Ctrl+F7 and then just type on after pressing Ctrl+Tab without having to click the mouse)
Press Ctrl+F6 instead of Ctrl+Tab. This brings you the editor you last typed in with the cursor at the latest position.
Can someone please clarify the default focus handling of the X11 server? My understanding is that the focus 'follows the mouse' and sure enough if I move the mouse between separate terminals I can see the cursor changing as each window aquires/loses the focus.
But when I run two xev windows and move the pointer between them, I see plenty of MotionNotify/EnterNotify/LeaveNotify as the pointer moves from one window to another - but FocusIn and FocusOut are nowhere to be seen. Is this an oddity in xev? Is there some special mask or property which needs to be applied in order for these events to be generated?
Many thanks, R.
While I do not fully understand the answer(s), I am grateful to parkydr, minitech and any others who may have stopped by.
Thanks again, R.
Having focus refers to the window which receives keyboard input when you press a key.
The focus handling depends on your window manager. The most common mode is click to focus, which your window manager is set to, where you only get focus when you click on the window. An alternative is that the keyboard focus follows the mouse, which is what you are expecting.
There should be a setting to change this in your window manager settings.
The cursor changing does not indicate focus, just that the terminal has defined a different cursor.
To demonstrate, open a terminal and an xev window.
Click on the xev window and press a key, you will see key events.
Move the mouse to the terminal window, you'll see the motion and leave events
Press a key and you'll still see key events from xev
Click on the terminal window, xev will give a focus out event
Press a key, the characters will be displayed in the terminal window
Move the mouse over the xev window and press a key, the character will still come out in the terminal window
I was wondering if Visual Basic could emulate the pressing of keys.
I was thinking of a program that did this:
When I press a button (Button1) it would start a timer (Timer1), then press the V key on the keyboard and then type what was entered in a textbox (Textbox1), then press the Enter key. After doing that, repeating that action a second or two later, but saying what is in (Textbox2).
Could this be possible? If yes, please respond.
This will tell you how:
http://msdn.microsoft.com/en-us/library/ms171548(v=vs.80).aspx?cs-save-lang=1&cs-lang=vb
And use:
http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.send.aspx?cs-save-lang=1&cs-lang=vb
For special keys.
If I press a shortcut combination (such as Ctrl+M) – VS waits for the second one. What if I want to cancel it? (e.g. if I mistakenly press the wrong letter and am not sure which one.)
It just waits, with the "(Ctrl+M) was pressed. Waiting for a second key of chord..." in the bottom of the screen.
How do I cancel it?
Press Escape. Usually it is not tied as a second keystroke.
I normally press Esc .
I don't know of any keyboard shortcut where Esc is the second key press.
There aren't many visual studio Chords that end with Esc so just hit Esc it'll say The key combination is not a command but it prevents you from performing a valid chord.
Another option is to record a no-op macro and assign it to Ctrl-M, Esc. It will say running macro at the bottom quickly and go away.
You are in Dvorak Keyboard mode in windows. Press Ctrl+Shift to get out of it...