Questions tagged [keyboard]

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

Interacting with Mathematica using the keyboard. Advanced users often find keyboard interaction faster and more powerful than using the mouse. Questions about built-in and custom keyboard shortcuts, keyboard navigation in the front end, editing key events in the KeyEventTranslations.tr file and introducing new hotstrings with InputAliases should use this tag.

Questions on the methods to customize the Front End to your needs should also use the tag . This should not be confused with which is about introducing new (mathematical) symbols and formulae. Questions about the syntactic validity of some notation should use the tag .

Useful links

Example questions

269 questions
15
votes
1 answer

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 "word", like it does on regular word processors.…
Rain
  • 636
  • 3
  • 12
12
votes
1 answer

How to overwrite key shortcuts?

It is very handy to have shortcuts for frequently used glyphs, e.g. [[, ]], <|, |>, and ->. I know already that we can do this by modifying KeyEventTranslations.tr located in FileNameJoin[{ $InstallationDirectory, "SystemFiles", "FrontEnd", …
Henrik Schumacher
  • 106,770
  • 7
  • 179
  • 309
7
votes
1 answer

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 as \.08. The presence of this character completely…
whackyusername1
  • 367
  • 1
  • 7
7
votes
2 answers

shifted keyboard shortcuts not working after 12.1 upgrade

Ever since upgrading to Mathematica 12.1, the keyboard shortcuts that involve the shift key -- such as control-^ (control-shift-6) for a superscript, and control-@ (control-shift-2) for a square root -- don't work. Instead, I just get a beep, and…
ibeatty
  • 2,533
  • 11
  • 22
6
votes
2 answers

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 OS X 10.7.5. This would be very useful as it is time consuming having to click through with the mouse each time.
Virgo
  • 375
  • 2
  • 9
6
votes
1 answer

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 diskPosition = {50, 50}; left = False; right = False; up = False; down = False; Manipulate[ Graphics[Dynamic[ If[left, diskPosition[[1]] += -.01];…
isa_vita
  • 135
  • 4
6
votes
1 answer

Making a keyboard shortcut using the Fn (function) key on OS X

A lot of my use for Mathematica is creating notebooks that read like textbooks. For this reason, most of my time is spent in text cells. As I type in a text cell, I am constantly creating inline cells. I find the Control + 9 method for creating…
B flat
  • 5,523
  • 2
  • 14
  • 36
5
votes
2 answers

How can I create a shortcut for a command in Mathematica?

I am using mathematica to write my physics homework, one thing that trouble me is that I need to enter lots of vectors. I usually type the name of the vector, "A" for example, and then hit "[Ctrl] 7" and "[Esc] vec [Esc]" to get a full vector…
username123
  • 257
  • 1
  • 6
5
votes
0 answers

Brevity of denoting Conjugate[]

How do I make Conjugate[] expressions have a bar above them instead of Conjugate[ before them, in order to shorted up expressions? I'm looking at something like this screenshot for example:
PPR
  • 205
  • 1
  • 5
5
votes
1 answer

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 [[: Item[KeyEvent["8", Modifiers -> {Control}], FrontEndExecute[{ …
Niki Estner
  • 36,101
  • 3
  • 92
  • 152
5
votes
1 answer

Custom setting of HOME and END keys on mac

Is there a way to set the HOME and END keys on a Mac's keyboard to jump the cursor to the line's beginning and end respectively? I tried to apply a global solution, as suggested for example here, but this didn't help. Is there a way to do it…
Dror
  • 1,841
  • 17
  • 19
4
votes
2 answers

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 reach for the mouse and move over.)
Shredderroy
  • 5,249
  • 17
  • 26
4
votes
3 answers

Shortcut for Selecting Current Cell

Is there any shortcut or keyboard hot-key which selects the current cell? I am basically looking for the exact effect as clicking on cell bracket but achieved using keyboard instead of mouse. I frequently comment and de-comment cells while testing…
Nitin
  • 431
  • 2
  • 8
4
votes
0 answers

Is there a shortcut for typing brackets and parenthesis?

Is there shortcut for putting {...}, (...), or [...] around highlighted code (as opposed to typing opening bracket at the beginning and closing bracket at the end)? I have seen people writing code in Mathematica and when they type {, (, or [, it…
Miladiouss
  • 1,883
  • 11
  • 26
3
votes
0 answers

Creating advanced AutoInputReplacement functionality

I have an "advanced" question about InputAutoReplacements. I have been working on creating InputAutoReplacements to make my workflow faster. The InputAliases's are frustrating having to reach up over the keyboard to press escape before and after…
B flat
  • 5,523
  • 2
  • 14
  • 36
1
2 3