Shortcuts on mac os

i noticed over a long time that shortcuts occasionally stop working then return again. other times it doesn’t work again until I restart slicer

this happens occasionally over many versions of slicer

I have noticed this as well, and I’ve wondered if it’s a keyboard focus issue (maybe with Qt). Sometimes if I click in a certain window or pane, shortcuts start working again.

Yes keyboard shortcuts often depend on a current focus. For example if you have a shortcut for say the letter “z” to do some action on the main window, that shortcut won’t trigger if you are in a typing field writing out “zoo” for example.

Can you provide details about the shortcut that seems to not work at times? Then hopefully we can narrow down whether it is an issue with the key sequence and how it is triggered when using various widgets.

in my experience, the shortcuts are related to segmentation like the space bar, numbers, Cmd+Z.

the times I remember it, it starts whenever I open a file starting working on it. closing it and restarting slicer helps sometimes and sometimes I noticed it returning without doing anything

Yes so for case of pressing “space” to toggle between segment editor effects that is only enabled when the active module is SegmentEditor and the focus isn’t elsewhere such as in the python console. If the focus is the python console, then the space will trigger in the console field as adding a space. However if you click back into the module panel or slice views, it will know that pressing space means to toggle between segment editor effects.

actually when it happens, it continues regardless of where the focus on.
you are describing normal software behavior , but the one I’m reporting is different

It would be great if you could figure out a minimum set of steps to reliably reproduce it. We could then investigate and fix the issue.

1 Like

last time it happened . opened a dcm then started segmenting . no shortcut was working . i kept working for 10 minutes or so then shortcuts started working again .

same exact scenario happened few times before §

You need to be more specific. For example, describe what data you loaded and then every clicks you made.

it happens when I load dicom, then start segmentation. Shortcuts to editing effects like number 2 or 4 won’t work. in these instances, all shortcuts won’t work

Please provide a list of every click you make after you start the application. If repeating those clicks results in incorrect behavior on a developer’s computer then the problem will be fixed. If we cannot reproduce a problem then we cannot fix it.