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

learn more… | top users | synonyms

0
votes
0answers
26 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 ...
0
votes
1answer
59 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
41 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
27 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 ...
0
votes
2answers
93 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. ...
2
votes
0answers
67 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 ...
3
votes
1answer
48 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 [[: ...
6
votes
1answer
195 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
47 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
136 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 ...
1
vote
1answer
204 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
134 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 ...
3
votes
1answer
91 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
111 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. ...
4
votes
2answers
155 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
290 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
254 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 ...
6
votes
2answers
329 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 ...
8
votes
0answers
113 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. ...
3
votes
0answers
77 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 ...
2
votes
2answers
208 views

Make fraction with selection in denominator

Using ctrl/ you can make a fraction. If you have selected something it will appear in the numerator. Does there exist a shortcut to make the selected text appear in the denominator instead? If not, ...
15
votes
2answers
493 views

How to write plain Greek in a text cell

If I create a text cell and type some greek text, most of the symbols are italics as if the cell had an Input style. It doesn't happen with latin characters. I recollect that it is impossible to fix ...
6
votes
2answers
181 views

Evaluating selected expression using keyboard shortcut

Imagine that in this toy code I want to evaluate just the selected (blue) expression: To get as output result: {09/14,09/15,09/16,09/17,09/18,09/19,09/20} There is some shortcut to do this? I'm ...
24
votes
1answer
736 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 ...
1
vote
0answers
85 views

Insert a Quantity Unit literal in TraditionalForm

Is there a keyboard shortcut for creating something like the result of this: Quantity["Kilograms" * ("Meters")^2 / ("Seconds")^2] After copying the result to a ...
3
votes
1answer
141 views

Key Mapping in Command Line Mode

I would like to map Ctrl-U to "kill line" when using Mathematica 9.0 in command line mode (i.e. not within the front end, but when called from a Unix command line by "math"). I am aware that (on a ...
1
vote
2answers
219 views

Add keyboard shortcut to the DisplayFormula style

Is there a way to set up key bindings for the DisplayFormula and DisplayFormulaNumberedstyles? I am using Mathematica 9 on mac ...
0
votes
0answers
31 views

“Go back” and “Go forward” in help? [duplicate]

This is a duplicate question with Gestures for forward/backward in help browser (particularly on a Mac). Please close this question. In IE, we can "go back" by Alt+←, and "go forward" by Alt+→. This ...
0
votes
2answers
2k views

KeyPress function in Java's Robot class, how to state parameter?

I am trying to use Java's Robot class to type. This is what I have done so far. Needs["JLink`"]; InstallJava[]; robot = JavaNew["java.awt.Robot"] The mouseMove ...
5
votes
1answer
231 views

How to make the Menu key on my keyboard work in Mathematica

My Menu key works in Windows Explorer, Internet Explorer, many apps, but does not work in Mathematica's notebook. The function is like that of Right-Click with the mouse. Function expected: Select ...
2
votes
1answer
215 views

3rd derivative keyboard shortcut

For a long time i've evaluated D[f[t],{t,3}] to get this power-like derivative thing: $$f^{(3)}(x)$$ Is it possible to obtain same through an easier keyboard ...
6
votes
1answer
194 views

Remap Ctrl+Space?

The Ctrl+Space keyboard shortcut is really important in Mathematica for using Placeholder[] boxes in input templates. Unfortunately, Ctrl+Space occupies the ...
1
vote
0answers
135 views

Is there a keyboard shortcut for Centered Math Cell?

I've been typesetting in mathematica and would like to know if it is possible to use a keyboard shortcut to place a centered math cell or equation symbol aligned math cell in my document without ...
1
vote
2answers
143 views

How to delete the current group-cell using the keyboard?

Related to Delete the current notebook cell using the keyboard. Difference is that here I want to delete the whole group of cells, including the original Input cell and all Print, Output, Message etc. ...
3
votes
1answer
212 views

Autocomplete short symbol names in non-global context

Is it possible in v9 to autocomplete the short symbol names when one is operating in a context other than Global`? I.e. after evaluating the following: ...
4
votes
1answer
181 views

How I get random keys from keyboard for game controls?

I'm trying to make moving object using controls. I'm trying to do this using Buttons. The code is ...
4
votes
0answers
221 views

Why FrontEnd`KernelExecute doesn't work in KeyEventTranslations.tr?

Which commands can you put in KeyEventTranslations.tr ? There is an extensive list of FrontEndTokens, but what else can you use? Why something like this doesn't ...
2
votes
2answers
509 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 ...
3
votes
1answer
244 views

An ancient MIDI keyboard?

There is a demostration project http://demonstrations.wolfram.com/KeyboardAndComposer/ where you can compose Western music using a 97 keys simulated midi keyboard. I study eastern and ancient music ...
2
votes
1answer
744 views

Shortcuts for integration and differentiation?

I am trying to learn the most useful keyboard shortcuts for doing basic operations such as integration, differentiation etc in standard form. A few questions - I have checked the documentation and ...
3
votes
1answer
151 views

Can this Part shortcut key be made to work with version 9?

In version 8 I was a frequent user of the "Use shortcut keys to easily type〚 and 〛" trick. In version 9, when I try to make the necessary change to ...
2
votes
1answer
502 views

Mathematica Mac Keyboard Shortcuts not Working?

Really I'm just trying to use the Ctrl+2 shortcut to make a radical, but for some reason this won't work. What could possibly be going wrong? The exponent shortcut works (i.e. Ctrl+6).
5
votes
1answer
321 views

The shortcut for Subsuperscript doesn't work?

The document for Subsuperscript says that: To enter a subsuperscript in a notebook, use either Ctrl+_ to begin a regular subscript or Ctrl+^ to begin a regular superscript. After typing the ...
18
votes
1answer
686 views

How can I set a keyboard shortcut to run a command?

I want to use this to add a keyboard shortcut to an undo function I wrote. The basic problem is the following: I have a command, let's say x=1, and I want to run ...
3
votes
1answer
232 views

Quick way to invert a fraction

Over the years of using Mathematica, I find myself doing something along the lines of rewriting this: $\frac{[A^-_F]}{[A^-_U] + \frac{[H^+][A^-_U]}{\kappa_1}}$ as this: $\frac{[A^-_U] + ...
3
votes
2answers
207 views

Key to get help about current function

I know you can hit F1 to pop up the documentation center, and then type the name of a function and search for it. I'd like to know if there's a key that just pops up the help page of the function ...
15
votes
2answers
375 views

Auto-completion doesn't work as my expectation in version 9.0

When I input the following line in version 8, and press Ctrl+K after Re, I can get a drop-down auto-completion list including ...
25
votes
2answers
674 views

Template completion

In version 8, if one evaluates test::usage="test[x,y]"; then types test, then shift-cmd-k (or shift-ctrl-k), a template ...
7
votes
1answer
214 views

How can I add arbitrary code into DefaultKeyTranslations.tr?

The solution to this question on how to get latex code for a text cell (which Mathematica doesn't do correctly) was formulated as a palette but I need it as a keyboard shortcut. How can I add an ...
5
votes
2answers
202 views

Is it possible to define more than 9 shortcuts for notebook cell styles?

You can define shortcuts for notebook cell styles in the stylesheet editor, by adding MenuCommandKey->"7", etc. to the style definition. That is, you can define ...