seb-mac icon indicating copy to clipboard operation
seb-mac copied to clipboard

Is the Cocoa text system accounted for?

Open leoheitmannruiz opened this issue 1 year ago • 5 comments

Hey, I hope you're doing good :)

I just wanted to make sure that you are aware of the Cocoa text system (also see here).

I don't know how to test this, as I don't have a configuration file lying around, though opening https://sourceforge.net/p/seb/discussion/ in SEB, I could use my custom Cocoa text system shenanigans in the input field. The most obvious use case (to me) is the insertion of arbitrary predefined text.

Please excuse me, in case this is already cared for in proper exams.

To Reproduce

  1. Create a ~/Library/KeyBindings/DefaultKeyBinding.dict (feel free to use mine below)
  2. Type ;secret
{
  ";" = {
    " " = ("insertText:", ";");
    "s" = {
      "e" = { 
        "c" = {
          "r" = {
            "e" = {
              "t" = ("insertText:", "mega sick cheat, whoaaaaaaaaa!"); 
            };
          };
        };
      }; 
    };
  };
}

Expected behavior I expect this not to work in a proper exam.

leoheitmannruiz avatar Mar 06 '24 12:03 leoheitmannruiz

I was able to use custom Coca text system functionality in an exam in SEB 3.3.2.

leoheitmannruiz avatar Mar 12 '24 15:03 leoheitmannruiz

Thank you for reporting this, I am looking into it.

danschlet avatar Mar 12 '24 15:03 danschlet

I was able to reproduce the issue, thank you for the bug report.

I will add a fix to SEB 3.3.3 for macOS.

danschlet avatar May 10 '24 18:05 danschlet

This should be fixed in SEB 3.3.3 for macOS. Please test and report if it works for you.

danschlet avatar May 26 '24 15:05 danschlet

Seems to work fine!

leoheitmannruiz avatar May 27 '24 10:05 leoheitmannruiz