3
$\begingroup$

Executing the code below yields a dropdown menu of possible words as you type them in a text cell.

SetOptions[$FrontEndSession, NotebookEventActions -> {
   
   "KeyDown" :> {FrontEndTokenExecute["CompleteSelection"]},
   
   {"KeyDown", "\t"} :> {(*Do Nothing*)}
   
   , PassEventsDown -> True}]

My problem is the second event. I don't want the tab key event to be passed down. However, I need all other keydown events to be passed down. Is this possible?

$\endgroup$

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.