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
1
vote
1answer
37 views

Pressing the “enter” key in the Python External Evaluation cell becomes “run” instead of “line break”

I have met problem in the use of style sheet. In using the External Evaluation of Python in Mathematica, If we choose the style sheet as "Default", pressing the "Enter" will cause ...
4
votes
1answer
101 views

Switch bool from False to True on key press?

I would like to let a boolean variable switch when I press a key on the keyboard. For example, I write ...
1
vote
1answer
53 views

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 ...
0
votes
0answers
45 views

Create keyboard shortcut to quit the kernel

I would like to reset all my user-defined symbols using a keyboard shortcut. I believe the mouse-activated command is Evaluation->Quit Kernel. How can I do this without having to use the mouse?
8
votes
1answer
214 views

Change default cell type of Wolfram|Alpha Notebook Edition to Input

Now that Wolfram|Alpha Notebook Edition, which is in essential Mathematica with a special front end: is free for 6 months, I'm playing with it. Default cell type of Wolfram|Alpha Notebook Edition is ...
0
votes
1answer
65 views

Superscript on mac hotkey not working

I cannot input superscript with the keyboard shortcut ctrl-6. I am on mac osX 10.14.5. The menu button in insert>typesetting>superscript works and says the shortcut is ctrl-6. One site said use ctrl-...
1
vote
0answers
33 views

Why the typing lag after interaction with a 3D plot? [closed]

[Mathematica 12.1 on Windows 10 64-bit. My Antialiasing Quality is set to No Antialiasing] Edit: the behaviour is actually more ...
0
votes
1answer
24 views

What is the general behavior of the “enter” character, and why does the specific behavior differ in these four situations?

I am trying to understand the exact behavior of the "enter" character in Mathematica. (I am not even sure what to call it: perhaps it is really the carriage return or newline character, which is input ...
1
vote
0answers
25 views

Can “Extend Selection” aka ctrl+. be used in the workbench?

Extend Selection (Ctrl+.) is likely the most useful mathematica keyboard shortcut for me. Is it available in the Wolfram Workbench? Naively pressing Ctrl+. doesn't do anything and searching the ...
4
votes
0answers
36 views

How to control global key event handling for all front end sessions?

This website collects many methods for implementing user defined keyboard shortcuts through KeyEvent items in KeyEventTranslations.tr, see 16697, 16165, 23285, 2572, etc. Some of these were collected ...
2
votes
0answers
30 views

KeyEventTranslations.tr at user directory

I added some shortcut defintions to the system file KeyEventTranslations.tr and they work perfectly. However when I move the same definitions to a seperate file in ...
7
votes
2answers
155 views

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 -...
4
votes
2answers
87 views

How to run all cells above current one? [duplicate]

In Jupyter notebook, there is a Run All Above (a certain cell) option. Is there something like Run All Above in Mathematica?
0
votes
0answers
24 views

What is the name of the Page Down key when using EventHandler? [duplicate]

I want to trap the PageDown event in an EventHandler. The code I've written is working fine for, say, "RightArrowKeyDown". But for the life of me I can't find the label for the Page Down key. I've ...
4
votes
1answer
103 views

In search of lost time: Mathematica keyboard shortcuts

I am wondering about all the shortcuts that there are in Mma, besides the documented ones in https://reference.wolfram.com/language/tutorial/KeyboardShortcutListing.html. Are there any undocumented ...
2
votes
0answers
115 views

Shortcut Ctrl+Shift+d does not work anymore

M12.1, Win10: all of a sudden Ctrl + Shift + D does not work anymore to divide a cell: nothing happens, except a warning beep. Right-click Divide Cell works normally. MenuSetup.tr contains MenuItem["...
0
votes
0answers
25 views

How to make DownArrow key move to next line rather than next code suggestion?

I like to move quickly through my code using the arrow keys. This is frequently frustrated by Mathematica's suggestions of variables to use. Is there some solution for this? Solutions may include ...
0
votes
0answers
17 views

Unable to shortcut-abort with Italian keyboard

I have a very simple problem : I am unable to Abort using "Alt+." when my keyboard is set in Italian. I press the combination, but it does not abort, I receive a Windows sound, like the one when you ...
5
votes
0answers
44 views

Keyboard Shortcuts in paclets?

I’m trying to add simple keyboard shortcuts (together with menu item) to my paclet through FrontEndExecute which works fine in notebook, but as soon as I put it into my paclet and import it the menu ...
5
votes
1answer
48 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
25 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
8
votes
1answer
245 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 ...
1
vote
0answers
84 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
77 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 ...
2
votes
1answer
136 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 ...
1
vote
0answers
49 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 "...
2
votes
1answer
192 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 ...
12
votes
1answer
249 views

How to overwrite key shortcuts?

It is very handy to have shortcuts for frequently used glyphs, e.g. [[, ]], <|, ...
5
votes
1answer
136 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 ...
2
votes
1answer
75 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
64 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 ...
2
votes
1answer
118 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 ...
1
vote
0answers
78 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 (...
3
votes
2answers
170 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 ...
0
votes
0answers
69 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
77 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 ...
2
votes
1answer
52 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 ...
7
votes
3answers
579 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 ...
0
votes
0answers
123 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
72 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 ...
3
votes
2answers
155 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 ...
2
votes
0answers
30 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
77 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 ...
3
votes
2answers
227 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, ...
1
vote
1answer
51 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
32 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
59 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?
2
votes
1answer
119 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
51 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?
9
votes
2answers
93 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 ...

1
2 3 4 5