XtermBlazor icon indicating copy to clipboard operation
XtermBlazor copied to clipboard

AttachCustomKeyEventHandlerEvaluate

Open Int32Overflow opened this issue 3 years ago • 1 comments

How does the "AttachCustomKeyEventHandlerEvaluate" function work? I have tried to deactivate a certain key. However, JS errors come up. Example: xterm.AttachCustomKeyEventHandlerEvaluate("(event) => event.keyCode != 38;");

I want to disable ArrowUp and ArrowDown so that they do not move the cursor up or down.

Int32Overflow avatar Oct 17 '22 14:10 Int32Overflow

What is the error? Can you share it thanks. Also your C# code if possible thanks.

BattlefieldDuck avatar Oct 17 '22 16:10 BattlefieldDuck