Questions tagged [keyboard]

For interacting with the Mathematica front-end using the keyboard: shortcut keys, KeyEvents, keyboard navigation, etc.

Filter by
Sorted by
Tagged with
3
votes
2answers
145 views

Is there any keyboard shortcut to delete the output of a particular cell

Is there any keyboard shortcut key to delete the output of a particular cell in Mathematica. Suppose if I am in a particular cell, and the cell has some output and If use some keyboard shortcut like ...
26
votes
1answer
589 views

Is it possible to maintain user-defined shortcuts in a web-installable package?

There are various posts here on this site about how to add user defined extra keyboard shortcuts for the front end. The problem is how to put them into a better maintable and properly documented ...
3
votes
2answers
150 views

Remap escape key for entering special characters?

My keyboard does not have an escape key, and remapping it through my computer/keyboard settings is turning out to be much harder than I previously thought. Also, ...
2
votes
1answer
32 views

Using the Control key to edit notebooks on wolframcloud

Using the notebooks on mathematica.wolframcloud.com in the browser is very convenient, but I can't figure how to type fractions, powers, etc using the "Control" key as the key seems to be captured by ...
1
vote
0answers
23 views

Ctrl + ^ shortcut not working correctly

As expect I'm getting a blank superscript input graphic, however, I'm also being directed to the beginning of the document
5
votes
1answer
118 views

All the group formatting available in Mathematica

I was wondering how many pre-defined group formatting style there is in Mathematica. From Format -> Style, one see that we can go from ...
3
votes
1answer
129 views

How can I jump to the next initialization cell?

I've got a long document and I suspect know that I mistakenly set some cell in the middle of the document to be an initialization cell, probably hidden inside multiple collapsed sections and ...
6
votes
1answer
221 views

How to open a Python interpreter input cell?

Something weird just happened to me: I mis-typed a keyboard shortcut, hitting the wrong keys, and a new notebook opened up with a Python prompt! Just for grins, I tried entering some simple Python ...
3
votes
1answer
118 views

How to Automate Esc [[ Esc formatting in version 11.2 on Windows?

Existing answers given in automating-esc-esc-formatting no longer work in 11.2 on Windows 7 for some reason. At least I could not make them work. It was suggested to open new question to find a ...
1
vote
0answers
67 views

Why Ctrl+ / doesn't work in my Mathematica?

I would like to type a fraction into my notebook using the Ctrl + / combination, but it doesn't work.
1
vote
1answer
219 views

Custom keyboard shortcut. Previous answer is not working in Mathematica 10

I want to remap the alias delimiter from Esc to Ctrl+f (or Ctrl+Shift+f or some other key combo). I have not been able to get the previous solution to the question to work (Rebinding keys to define ...
1
vote
1answer
72 views

Turn PasteButton into keyboard shortcut

I'm looking for a general "recipe" to do with a keyboard shortcut what I currently do with a PasteButton. Here is a working toy example ...
4
votes
2answers
330 views

Any hidden keyboard shortcut for RightTeeArrow?

The Basic Math Assistant palette does not show a keyboard shortcut for RightTeeArrow. Is there some hidden key combination that results in the output? (Just hoping to be able to avoid having to ...
2
votes
1answer
142 views

Mac Touch Bar and Hidden Characters

I am reposting this question (Translate key events to nothing?) hoping to resolve an issue that is causing me no end of, bug chasing. Arggh, Help. On a Mac with a touchbar, if my finger slips and ...
2
votes
1answer
112 views

Automated (lazy) method to make custom (key-input) shortcuts (not menu items) for letter-like symbols? [duplicate]

The Problem: I don't know about you, but every time I am trying to do analytical work in Mma, it is rather difficult/cumbersome for me to type the following, here specifically for ...
2
votes
1answer
110 views

What is the “phone” symbol that appears with the keyboard shortcut “ctrl-g” in Mathematica 11.1?

Using ubuntu, and mathematica 11.1, the keyboard shortcut ctrl+g creates a small emoji of an old landline phone (see image). It does not appear in mathematica 10. If I copy it from 11.1 end up with ...
16
votes
2answers
4k views

Rebinding keys to define new keyboard shortcuts

I've checked Mathematica → Preferences, and poked around the options on the toolbar. However, I don't see a way to define new keyboard shortcuts in Mathematica. I've used VIM for 10+ years, and I've ...
1
vote
0answers
31 views

Custom (emacs) key bindings for open/save in Mathematica 11

Is it possible to change the key bindings for Open and Save? This used to be possible in MenuSetup.tr, along the lines of this post. In Mathematica 9, there were explicit "Open" and "Save" (and "...
29
votes
4answers
7k views

Keyboard shortcut to evaluate notebook

(If this is entirely trivial, although I couldn't find an answer as much as I searched the archives, I will delete the question.) How could I add a keyboard shortcut to evaluate the entire notebook ...
8
votes
0answers
159 views

How to overwrite key shortcuts?

It is very handy to have shortcuts for frequently used glyphs, e.g. [[, ]], <|, ...
38
votes
2answers
4k views

Cheat sheets or reference cards for Mathematica

In order to improve my workflow with Mathematica, I'm looking for cheat sheets. The purpose of such reference cards is to be printed and to stay on the desk during the learning of a new programming ...
7
votes
3answers
489 views

Programmatically create a keyboard shortcut to “Align Center” a Text Cell without losing cursor position

I'm attempting to create a keyboard shortcut to center the contents of a text cell exactly as clicking "Align Center" accomplishes in the Format Menu. As far as I can tell, there is no frontendtoken ...
2
votes
1answer
61 views

Define Macros to automatically change keyboard input

When using Solve for example, I find myself having to use it in conjunction with other types of functions, like Flatten or ...
2
votes
0answers
48 views

Translate key events to nothing?

My Macbook Pro has a touch bar which is causing me to make a bunch of hard-to-find errors If my finger mistakenly hits the F3 through F12 positions on the touch bar, the front end inserts an ...
3
votes
2answers
124 views

“NewRow” shortcut on OS X Mathematica 11 not working

The shortcut to add a row to a matrix ("ctrl"+"Return") on my OS X version 11.1.1.0, isn't working. Instead of inserting a new row it just inserts a new line into the cell. Has anyone else experienced ...
0
votes
0answers
57 views

Shift+home / shift+end not working on linux

Like I said in the title: shift+home (and shift+end) key combinations don't result in selecting line from current cursor position to beginning (or end) of the line. Cursor just jumps to the beginning (...
19
votes
3answers
536 views

Parenthesize what I have highlighted

I want to highlight a piece of equation, click a button and have that part taken into parentheses.
4
votes
2answers
589 views

Ctrl+= does not open a box

In the guide/WolframAlphaIntegration documentation it says that = : use free-form linguistics to generate Wolfram Language output ==: generate full Wolfram|Alpha ...
0
votes
0answers
54 views

Keyboard shortcuts to invoke and navigate help attached cell?

How to create a keyboard shortcut to invoke and navigate the small help attached cell with that contains the syntax templates and the link to the documentation? Currently this help cell only shows up ...
1
vote
1answer
64 views

Custom Hotkey Toggle Initialization

In this old stack overflow answer (referring to this even older page) it is shown how to make custom hotkeys by modifying the file KeyEventTranslations.tr. Some ...
8
votes
3answers
3k views

Copy last/second last (etc.) input from history into current cell

I like to use terminals (e.g. gnome-terminal) where you can use the up key to copy the last command into the current input 'field'. For example, to repeat the last ...
17
votes
1answer
15k views

What is the comment shortcut?

I went to a Wolfram Technologies workshop a few weeks ago and the presenter showed us a keyboard shortcut that when a block of input is selected, the shortcut puts the block of selected input in ...
0
votes
0answers
72 views

Close/Open current section

I want to create a keyboard shortcut to open or close the section my cursor is currently in, or in case I am selecting a cell or multiple cells (let's assume not headers (alt 1-6) them self for ...
2
votes
1answer
48 views

Shortcut key to extend selection in the same way as mouse multiclicks

I would like to make a key-binding to select everything below one level above my the current postion of the cursor. This should be the same what happens if I multi-click on an expression -- each click ...
1
vote
1answer
216 views

How can I use Ctrl-n and Ctrl-p to interact with the completion menu on macOS?

I would like to use CTRL-N and CTRL-P to select the next or previous entry in the context-sensitive autocompletion menu of ...
7
votes
2answers
818 views

Mathematica 10 on Ubuntu: Extremely slow input and random key inputs

I have some problems with my mathematica 10 on Ubuntu 12.04. First, the keyboard input is extremely slow. I press a key, and then the input comes with a delay. This makes typing very cumbersome. ...
24
votes
2answers
1k views

Best way to add KeyEvents and faster Quit

Many users have asked how to add KeyEvents to speed/improve keyboard input. This is just a random example. The technique is always the same. It requires that you ...
1
vote
1answer
48 views

How to make WholeCellGroupOpener menu shortcut that toggles

I put the following code using the Xcode application into an init.m file that is auto-loaded at startup. I can now turn on WholeCellGroupOpeners using a shortcut. Works great. ...
0
votes
0answers
80 views

Solution for multiple cursors to perform multiple simultaneous edits

Is there any good solution available for performing multiple edits simultaneously in a Mathematica notebook? As a workaround, I occasionally paste Mathematica code into a Visual Studio Code editor, ...
2
votes
0answers
52 views

Keyboard control of 1d and 2d sliders in Manipulate

I would like to be able to control the sliders in Manipulate via keyboard control (not just by dragging with the mouse). How can I do this? I've seen this post, but unfortunately the keyboard part ...
11
votes
4answers
784 views

Switch actions of Shift+Enter and Enter in notebook interface?

How can I switch the functionality of the Enter and Shift+Enter key combinations in Windows? I find Matlab's interface more intuitive sometimes. By default in Mathematica's front-end, the Shift+Enter ...
2
votes
0answers
28 views

remapping MacBook Power button to work as Esc?

MacBook power button symmetrically mirrors Esc key on MacBook Pro keyboards, so it seems natural to remap make it work as Esc to ease on left-hand some strain, any idea if that's possible?
0
votes
0answers
31 views

Installing a Custom MenuItem into Init File [duplicate]

I have created a MenuItem that switches Wholecellgroupopeners On and Off for the currently selected notebook using the Control+w shortcut. ...
0
votes
0answers
46 views

How to create a shortcut for zooming in/out in Mathematica for Linux 11.3?

I want to use Ctrl +Scroll to zoom in/out in the notebook front-end of Mathematica for Linux 11.3 How to achieve this?
9
votes
2answers
79 views

Can Quantity interpretation be accepted using the keyboard?

Entering Ctrl+= on selected text results in the display of an interpreted Quantity, with the option to accept it, or choose other interpretations. The only way I ...
7
votes
3answers
425 views

How to Detect Special Key Presses in a Notebook?

We can use: SetOptions[EvaluationNotebook[], NotebookEventActions -> {{"KeyDown","s"} :> Print["triggered"]}] to make the current notebook respond to s ...
2
votes
1answer
102 views

`NotebookEventActions` for special keys (“F2”, “F3”, “pause”, etc.) on Windows [duplicate]

Using NotebookEventActions one can make MMA evaluate a function when a key is pressed. For example: ...
2
votes
1answer
44 views

Keyboard short-cut to duplicate a line

Is there a built-in keyboard short-cut to duplicate a line in Mathematica? If not, is it possible to create such a short-cut?
14
votes
1answer
870 views

Is there a keyboard shortcut to navigate to a matching parenthesis/bracket?

I use Mathematica on a Mac. If I place the text cursor in the middle of some text/maths and press ALT $\rightarrow$ or ALT $\leftarrow$, the cursor moves forwards or backwards (respectively) one full "...
10
votes
1answer
305 views

Simple Choice-Dialog like the auto-completion popup

What I want is pretty simple, nevertheless, after half an hour I have only unsatisfying solutions here. Let me ask you who might work more often with Mathematica's GUI elements: Is there a way to ...