Bug Editor in MacOS ?

Post bugs related to the IDE here
devulder
User
User
Posts: 13
Joined: Fri Dec 19, 2008 5:52 pm

Bug Editor in MacOS ?

Post by devulder »

Hi All,
I can't hit the character "|" in editor
French keyboard, shortcut are [shift + option + L]
Bug or limitation ?
Thanks,
User avatar
Piero
Addict
Addict
Posts: 961
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

Re: Bug Editor in MacOS ?

Post 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)
devulder
User
User
Posts: 13
Joined: Fri Dec 19, 2008 5:52 pm

Re: Bug Editor in MacOS ?

Post by devulder »

Hi Piero,
Thanks for your reply, i look this!
Post Reply