Keyboard shortcut select the clicked word - adobe-brackets

In Brackets, is it possible to assign a keyboard shortcut to CTRL + LMB that selects the clicked word, just like Visual Studio does? I can't find anything in the documentation.

Overriding the click behavior would require writing an extension, but there are several built-in equivalents that might be good enough for you:
Press Ctrl-B to select the word the cursor is on (you can easily change the shortcut but it has to be triggered by the keyboard, not the mouse)
Double-click to select the word
In your preferences file, add "highlightMatches": {"showToken": true} to highlight all occurrences of any word you place your cursor on (no need to select it)

Related

How to edit jupyter notebook shortcuts

Jupyter notebooks have a convenient means to edit shortcuts - by pressing H for help there is a button for it:
And here is the dialog to make the updates:
The question here is: when pressing add shortcut we apparently have a free form text field to enter the shortcut:
But whatever combination I put in actually causes some _system_wide_ kind of behavior to kick-in e.g. Command-R causes Jupyter to do something wacky, and I tried a couple of others. Is there another way to enter these?
Have you tried clicking on that link: details of defining keyboard shortcuts?
That gives some general tips on creating new shortcuts.
Your example might not work because you would want to use "Cmd-R" instead of "Command-R". Though, in my operating system, "Cmd-r" already does something(reloads the page). So whatever combination or sequence you choose, I'd make sure it doesn't already do something before using it as a shortcut.
Once you type into the field, are you clicking the "+" button to the right? If you click on that, it should then show if it's been set, and you can verify it set it to what you wanted. If you don't click the "+" button, it will have no effect.
Good luck!

Tmux: Clipboard selection behaves strangely in MobaXTerm

I'm running a Tmux session inside a MobaXTerm SSH connection. Now if I want to select some text to be copied to the system clipboard (by holding shift pressed while dragging the mouse over the text) the selection does not work as expected.
Assume I select one word. I press and hold shift, press and hold the mouse button over the first character of the word, move the mouse to the end of the word and release the mouse button. The word gets highlighted and copied to the clipboard. This works fine.
However, now I change my mind, or discover that I selected the wrong word, and want to select a different word. Again I do the same sequence as before, but on the other word. Strangely, when I press and hold the mouse on the new word, the highlighting is not reset, but continued from the initial highlighting of the previous selection.
This is extremely annoying. I can only reset the selection by temporarily switching to a different window. It seems this problem only occurs with MobaXTerm. If I use Putty instead, the selection works fine. I checked all settings of MobaXterm, but can't find anything related to mouse events.
To clear a selected region (after selecting with shift + drag) you can either:
Right click anywhere, then left click anywhere
Shift + right click anywhere, then left click (without shift) anywhere
I think (1) sometimes does not work when I have vim in my tmux pane, but (2) works regardless.
After clearing the selection, you should be able to start another from a new location.

Jaws shortcut key to shift focus to the Search term occurrence from JAWS find dialog

When I use JAWS 'find' to locate some terms on a web page, I use F3 and Shift+F3 to to move to next and previous instances of search term occurrences. The terms get read by JAWS however the focus doesn't move to each search term by default.
What I want to know is whether there's a shortcut to shift focus to the occurrence like for example, browser native 'find' starts highlighting the search term occurrences and pressing Esc shifts focus to the first occurrence.
That depends on your definition of "focus". When you use F3, JAWS will read the result of the find and its surrounding context. The JAWS virtual focus is moved to the search result. If you use the up/down arrow keys after hitting F3, you'll hear the next or previous element (respectively) in the DOM relative to the search result, so the "focus" is moved.
However, if you're talking about the focus as in the keyboard focus, no, that is not changed. If the search result were in a paragraph (<p>), the keyboard focus would not be able to move to that element unless it had tabindex="0" or tabindex="-1".

Shortcut key for changing code cell to markdown cell in jupyter notebook

Kind of silly, but is there a shortcut key to change a code cell to markdown cell?
To place a markdown cell, I have to insert a cell, then go to the toolbar menu (below the main menu bar), and then select "Markdown" instead of "Code".
Press M whilst in command mode (highlight around the selected cell should be blue, not green), use Esc to switch to command mode and Enter to switch back to edit mode.
So, if you're editing a cell, the key presses to change the cell to a markdown cell are Esc, M, Enter.
You can look up all the Jupyter notebook keyboard commands by pressing the keyboard icon in the toolbar. You can also edit your keyboard shortcuts by going to Help > Edit Keyboard Shortcuts
check help on the menu, there is keyboard shortcuts
select the code cell, press "esc + m ",and it will be a markdown cell.
moreover, from markdown cell to code cell, press " esc + y ".
Navigate to the required cell and press the Esc key on your keyboard followed by the M key
If you're using vim-bindings, the shortcut changes to Ctrl+2, also in command mode as in #Louise Davies answer.

How to capture Tab Key in Qt widget

I want to implement my own sequence for changing the focus of the active child widget using the Tab key. How to capture the Tab Key press event? I am using Qt5.2
If you want to change focus with Tab , you don't need to do those works, Qt has it as a feature.
First: set the desired widgets to be Qt::TabFocus or Qt::StrongFocus by QWidget::setFocusPolicy( Qt::FocusPolicy policy )
For example, if you want to rotate between 3 QLineEdit and 1 QCombobox, you have to assure that their focus policy have been set right. (Normally either Qt::TabFocus or Qt::StrongFocus will be set as default, but sometimes you might want to escape some widgets from being tabbed)
Second: go to designer mode and click "Edit Tab Order" to enter the tab-order editing mode
Third: After seeing the numbers, click on them until you got the desired sequence order.
(Picture from Qt official site)
Have a mouse press event or a event filter, get to the point where you have a QKeyEvent
Then only do something if tab was pressed
key_event->button() == Qt::Key_Tab

Resources