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

learn more… | top users | synonyms

3
votes
1answer
29 views

keyboard shortcut to invoke Insert new matrix

I frequently need to type in some matrices, and the menu command Insert>Table/Matrix>New... ...
2
votes
1answer
58 views

Is there any way to parenthesize a part of an expression which is already typed, by using a keyboard shortcut or something? [duplicate]

There are times that we need to feel use a keyboard shortcut or any other quick and simple way to parenthesize a part of an expression that is already typed. Is there any way to do that? For ...
0
votes
0answers
24 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 ...
2
votes
0answers
52 views

Autocomplete not working with tab key on Mathematica 10.3 Linux

when I want to autocomplete a function I can't use TAB key to expand what I typed in. If I press TAB, it escapes the popup suggestion menu. Autocomplete only works if I press ENTER. Furthermore,once ...
2
votes
0answers
66 views

KeyEventTranslations.tr gets ignored

Any change in my file KeyEventTranslations.tr in my directory ...
2
votes
0answers
42 views

Add keyboard shortcut without creating a new menu item [duplicate]

I want to some key combination like CtrlShift+ to insert Print[ ]; into a workbook. I used ...
2
votes
0answers
43 views

Executing selected code [duplicate]

In current Mathematica interface, if I select some piece of code and press CMD + Shift + Enter, the code is evaluated in place. Replacing the selected part by the evaluated version. The question is: ...
1
vote
1answer
46 views

Creating a keyboard shortcut to change the Style of text [duplicate]

I'm editing a very long text in a Mathematica notebook and I'm using the "Article" stylesheet. In this text, code is highlighted using ...
2
votes
0answers
41 views

Is there a way to fine tune the behavior of the Control + RightArrow keyboard shortcut?

I am not satisfied with the behavior of Ctrl+RightArrow or Ctrl+LeftArrow when navigating the expression in the Mathematica front-end. To be specific, they trigger a jump from one command to another. ...
4
votes
1answer
144 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. ...
5
votes
0answers
214 views

Front End does not respond to keys (version 10.2, Linux)

I was often complaining about the front end performance under Linux, but it seems I could pin down a very critical issue. I made a screen-cast that shows how to reproduce the issue Screen-cast on ...
9
votes
1answer
336 views

Version 10.2, key shortcuts for matching brackets do not work?

Bug introduced in 10.2 System: Linux Once updated to 10.2, my Alt+} and Alt+) do not return a pair of brackets but a single right one, as if Alt is not pressed. Alt+] still works.
2
votes
1answer
106 views

Some symbol does not auto-complete in v10.2

When I input Backsub in Mathematica 10.2 and press Ctrl+K after, I couldn't get Backsubstitution. My OS is Windows 8 32-bit. ...
2
votes
0answers
51 views

Is there a keyboard shortcut that reproduces the code two input cells above the current cursor location?

In Mathematica running on OS X, Cmnd+L is one of my favorite keyboard shortcuts, as it reproduces the code in the input cell above cursor location into the current cell or into a new cell when the ...
2
votes
1answer
51 views

How to access the string of the cell I am typing?

I'm trying to map a keyboard shortcut to google search the contents of the cell I am typing. Here is my code so far: ...
2
votes
1answer
52 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 ...
1
vote
1answer
181 views

AltGr randomly stops working - Windows 7

My problem is that AltGr just randomly and frequently stops working. I've only seen this problem since the last update (10.1). The only sure way to recover functionality that I've found was to change ...
1
vote
1answer
42 views

CellEventActions not working within DynamicModule

So here is some code that successfully displays a slider, the value of a dynamic variable, and cycles through a list of 10 images titled 'imgs' with keyboard commands. ...
2
votes
1answer
78 views

Tab in Input cell

Why is it impossible to use tab to indent e.g. an inline comment i.e. (* ... *) in an Input cell? However, I have seen that it is possible, if I use Cell>ConvertTo>TextDisplay. The cell remains ...
2
votes
0answers
79 views

Alt drag does not work properly

When a graphics is displayed, right clicking will bring up the Get Coordinates tool. To select a rectangular region, you can do it manually by selecting the two corners and Alt+C will copy these two ...
3
votes
2answers
186 views

Integrate using \[Esc] int \[Esc]

I like writing integrals symbolically instead of using Integrate[]. I suddenly seem to not be able to do this and am confused. I type \[Esc] int \[Esc] then ...
1
vote
1answer
76 views

How to resolve the conflict of keyboard shortcuts and customize all shortcuts?

The keyboard shortcut ctrl+5 is set for "other script" in previous versions, while now I am using 10.0 and find that this shortcut is also set for "Parallel Kernel Status", and actually the later is ...
2
votes
1answer
136 views

Function equal to Ctrl+Shift+I [duplicate]

No, it's not InputForm. Consider this example: ...
4
votes
2answers
105 views

Can I modify Ctrl— to insert Indexed expressions?

For me, Indexed[x, n] is a much more useful and versatile construct than Subscript[x, n]. I would therefore like to modify ...
6
votes
1answer
111 views

using keyboard shortcuts with non-US keyboard

There are several keyboard shortcuts that do not seem to work for me. I am using a German keyboard. I think this only happens when I have to use a modifier key that does not have to be used in case of ...
5
votes
1answer
162 views

How to move a cell up or down with a keystroke?

It is very useful during refactoring to move lines around. All popular IDEs or text editors have this feature (PyCharm, Vim, Sublime, etc..) for example in Xcode you press: ⌥⌘[ or ⌥⌘] to move lines up ...
2
votes
1answer
70 views

fields entry in ref/StreamPlot

In the ref/StreamPlot help file in Mathematica 10.0.2, we see the following image: Can someone explain how I would type this into an input cell?
4
votes
2answers
148 views

Headings, subheadings, text cells etc and Alt+n

This is a minor point but annoying. I have just upgraded to version 10.0.2.0 and discovered that you must select a bracket before doing Alt+1, or Alt +7 to make a cell a heading or text cell. This was ...
16
votes
1answer
351 views

Customize keybindings without modifying files in the installation directory

I would like to know if I can modify key bindings without being able to modify the KeyEventTranslations.tr in the installation directory. So maybe putting another one in my home dir and ...
1
vote
1answer
185 views

Unintended effect of closing square bracket on Spanish keyboard in Mathematica online

I have only just started using Mathematica Online and I have encountered a problem already with the ubiquitous closing square bracket ] using a Spanish key board. I ...
2
votes
1answer
164 views

Keyboard shortcut for changing style of selected text (NOT the whole cell)

For many years I have been using Alt+Shift+(number) to quickly change the style of text in a text cell. For example when I write descriptive text and want some of that text to look like input form, ...
3
votes
1answer
64 views

How can I show the inline parameter list with a keybinding while typing a function?

Is there a way to invoke either of these contextual menu buttons that popup when typing? I don't really like to move my hand over to the mouse just to see in what order the parameters are supposed ...
0
votes
0answers
39 views

Resizing text with keyboard shortcuts in Mathematica 10

In Mathematica 10, it seems that the Alt+= and Alt+- shortcuts affect the entire cell instead of only the selected text. In the following example, I highlighted "line 2" and pressed Alt+= several ...
1
vote
2answers
147 views

Keyboard Shortcut several Keys

I would like to set up a system (or define a keyboard shortcut) so when you type the following sum I have the following print at the current selection. ...
5
votes
0answers
130 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 ...
4
votes
1answer
83 views

How can I find out where a key binding is coming from?

Related: Automating Esc [[ Esc formatting? In previous versions of Mathematica, I could add these lines to my KeyTranslations.tr file, to map Ctrl+[ to [[: ...
7
votes
1answer
457 views

On a Mac OS X, Ctrl-Backspace generates ascii code 8 (backspace), which is almost invisible but very annoying

When I press Ctrl-Backspace, Mathematica inserts what looks either like a tiny white space or sometimes is invisible. Actually, though, it is an ascii character code 8, also enterable in Mathematica ...
3
votes
1answer
64 views

Apply a function to the current selection in place

Say a have the function foo: foo[x_] := x + 2 Like the Evalution ...
2
votes
1answer
203 views

Wrapping at evaluation for inline cell

I've been playing with inline evaluation and I've came to the conclusion that it's most convenient to put the Dynamic@ inside the inline cell, so I've started to ...
3
votes
2answers
311 views

Create custom shortcut to change font color

Just wondering if I can create a custom shortcut key to change the font color of the notebook text. I've created a custom shortcut (in dkyeventtransactions.tr) to bring up the font color dialog, as ...
1
vote
1answer
489 views

Why is evaluation Enter for Mac and shift+Enter for Windows? [closed]

Per the title, why is evaluation done using just the Enter key for Macintosh and shift+Enter for Windows? UPDATE Okay, I see the Mac keyboard's "Enter" key is actually labeled "Return", so by Enter ...
6
votes
0answers
165 views

Automatic replacing of [ with []

I tried to modify the KeyEventTranslations.tr file in order to always place a closed bracket instead of an open bracket once I press ...
4
votes
1answer
170 views

Is it possible to get AltGr key to work in Math.exe?

For some reason when you run Math.exe form windows command line, Mathematica disables the AltGr key. This is a bit annoying since my keyboard locale has the keys [, ], {, }, @, $, \, | located under ...
6
votes
1answer
133 views

How to handle keyboard events for unselected item in CDF?

How can I force the keyboard input to work for this cell without clicking on it after I evaluate or showing a blinking selection cursor? This is for running CDF games in a browser. ...
5
votes
2answers
176 views

Capturing an F1

I teach an Intro to Mathematica course, and one of the things I try to reinforce early on is just how helpful Mathematica's help is. In the very first lab for the course, I even give the students a ...
10
votes
2answers
499 views

Get tab key to indent a block of code

Is there some way I can change Mathematica keyboard behavior so I could select a block of text/code, press tab, and the selection would be indented to right? Similarly, I would like shift+tab to ...
8
votes
0answers
446 views

Keyboard issues with Mathematica 9.0.1 for Linux [closed]

After working for a while with Manipulate function and increasing the number of variables to be manipulated, keyboard stops working properly in the Notebook. It ...
9
votes
2answers
581 views

Front end typing lag

Under Windows 7 I frequently get serious keyboard lag. My home machine (Windows XP) NEVER lags. I was able to improve things somewhat by running Mathematica as Administrator, but this only went so ...
9
votes
0answers
125 views

Esc-esc for special characters and autocomplete in Mathematica 9 [duplicate]

I recently upgraded to Mathematica 9 and have noticed a slightly annoying behavior that I was looking to remedy. In the past I would type special characters, e.g. ...
8
votes
1answer
234 views

There is a button in the “basic math assistant” which wraps highlighted text in chosen brackets. Is there no keyboard command for this?

This counts as something of a basic question, but one for which I cannot find an answer. I checked the documentation, I checked google, I searched it here, I read a bunch of different things, but ...