Skip to main content
added 65 characters in body; edited tags
Source Link
Kuba
  • 138.9k
  • 13
  • 297
  • 803

I have tried modifying KeyEventTranslations.tr with code:

Item[KeyEvent["r", Modifiers -> {Control}], FrontEndExecute @ Module[ {p ,ret},   DialogInput[{ ListPicker[Dynamic[p],{"one", "two"}],  DefaultButton[DialogReturn[ret = p]] }] ], MenuEvaluator -> Automatic, Method -> "Queued" ], 

but it complains DialogInput is not currently supported within preemptive evaluationsthat

DialogInput is not currently supported within preemptive evaluations

whenever I call the keyboard shortcut.

I have tried modifying KeyEventTranslations.tr with code:

Item[KeyEvent["r", Modifiers -> {Control}], FrontEndExecute @ Module[{p ,ret},   DialogInput[{ListPicker[Dynamic[p],{"one", "two"}], DefaultButton[DialogReturn[ret = p]]}] ], MenuEvaluator -> Automatic, Method -> "Queued" ], 

but it complains DialogInput is not currently supported within preemptive evaluations whenever I call the keyboard shortcut.

I have tried modifying KeyEventTranslations.tr with code:

Item[KeyEvent["r", Modifiers -> {Control}], FrontEndExecute @ Module[ {p ,ret}, DialogInput[{ ListPicker[Dynamic[p],{"one", "two"}],  DefaultButton[DialogReturn[ret = p]] }] ], MenuEvaluator -> Automatic, Method -> "Queued" ], 

but it complains that

DialogInput is not currently supported within preemptive evaluations

whenever I call the keyboard shortcut.

Source Link
Ranza
  • 1.2k
  • 9
  • 22

How do I run DialogInput and SystemDialogInput by keyboard shortcut?

I have tried modifying KeyEventTranslations.tr with code:

Item[KeyEvent["r", Modifiers -> {Control}], FrontEndExecute @ Module[{p ,ret}, DialogInput[{ListPicker[Dynamic[p],{"one", "two"}], DefaultButton[DialogReturn[ret = p]]}] ], MenuEvaluator -> Automatic, Method -> "Queued" ], 

but it complains DialogInput is not currently supported within preemptive evaluations whenever I call the keyboard shortcut.