Page 1 of 1

Bug Editor in MacOS ?

Posted: Sat Sep 06, 2025 9:05 am
by devulder
Hi All,
I can't hit the character "|" in editor
French keyboard, shortcut are [shift + option + L]
Bug or limitation ?
Thanks,

Re: Bug Editor in MacOS ?

Posted: Mon Sep 08, 2025 2:54 pm
by Piero
devulder wrote: Sat Sep 06, 2025 9:05 amI can't hit the character "|" in editor
That must be very annoying!
Are you sure you didn't assign ⌥⇧L in PB preferences (shortcuts)?
Or to a utility, like e.g. FastScripts?
Also check System Settings/Keyboard/Keyboard Shortcuts… (it's a button)

In case, you can temporarily use this IDE tool, that types "|":

Code: Select all

Procedure simpleShell(ShellCommand$)
   Protected shell
   shell = RunProgram("/bin/sh","","", #PB_Program_Open|#PB_Program_Write)
   If shell
      WriteProgramStringN(shell,ShellCommand$)
      WriteProgramData(shell,#PB_Program_Eof,0)
      CloseProgram(shell)
   EndIf
EndProcedure

Define MyAScr.s = ~"osascript\n"+
~"-- wait for no modifier key pressed (shortcut)\n"+
~"use framework \"AppKit\" -- for NSEvent\n"+
~"repeat while (((current application's NSEvent's modifierFlags()) div ¬\n"+
~"(current application's NSShiftKeyMask as integer)) mod 2) > 0 or ¬\n"+
~"(((current application's NSEvent's modifierFlags()) div ¬\n"+
~"(current application's NSControlKeyMask as integer)) mod 2) > 0 or ¬\n"+
~"(((current application's NSEvent's modifierFlags()) div ¬\n"+
~"(current application's NSAlternateKeyMask as integer)) mod 2) > 0 or ¬\n"+
~"(((current application's NSEvent's modifierFlags()) div ¬\n"+
~"(current application's NSCommandKeyMask as integer)) mod 2) > 0\n"+
~"end repeat\n"+
~"tell application \"PureBasic\" to activate -- just in case\n"+
~"tell application \"System Events\"\n"+
~"tell application process \"PureBasic\" to keystroke \"|\"\n"+
~"end tell"

simpleShell(MyAScr)

Re: Bug Editor in MacOS ?

Posted: Tue Sep 09, 2025 12:38 pm
by devulder
Hi Piero,
Thanks for your reply, i look this!