OK, I didn't realize CMD-Shift C was the abort so that does make sense.

I do think leaving the keyboard in a broken state should be fixed
however. Let's say I had created a long script in an untitled window and
accidentally do this. I will not be able to save my work because I
cannot type a filename to save it under. The only way to save it would
be to copy and paste some text to use as a file name

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/936432

Title:
  type("C", KeyModifier.CMD) crashes script --- yes, it is Sikuli's
  abort key combo

Status in Sikuli:
  Invalid

Bug description:
  Under OSX trying to a copy by issuing a CMD-C key sequence using the
  type command, I have discovered that it you use upper case it causes a
  failure that leaves the system in a weird state where the CMD key is
  stuck down until you exit the IDE.

  Open the IDE and put this into a script and run it:

  type("c", KeyModifier.CMD)

  It runs with no problem.

  But change the case of the C so that it is:

  type("C", KeyModifier.CMD)

  and the script will crash with a message like this

  [error] Stopped
  [error] An error occurs at line 1
  [error] Error message:

  java.lang.InterruptedException: sleep interrupted

  The keyboard will then have the CMD key stuck down and all keys
  pressed will be CMD key sequences until you exit the IDE and then it
  will return to normal

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/936432/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to