customizing toolbox search

62 views
Skip to first unread message

Evan ARNAUD

unread,
Aug 20, 2025, 11:35:02 AMAug 20
to Blockly
Hi, i'm currently trying to find a way to implement a custom logic into my toolbox search field (@blockly/toolbox-search) and having a hard time doing it,

does someone know how could i attach an keystroke event to it to get the content of the searchbox at every keystroke and the ability to add block myself to the flyout?

many thanks

epas...@google.com

unread,
Aug 20, 2025, 12:25:16 PMAug 20
to Blockly
Hi there,

Since you're trying to add your own custom search behavior, I think the easiest approach would be to make your own fork of the toolbox-search code and modify it directly. Can you share what you've tried so far?

Cheers,
Erik

鳳山

unread,
Aug 21, 2025, 12:15:38 AMAug 21
to blo...@googlegroups.com
Hi Evan,

Based on the attached video, I wrote a similar "toolbox-search" function in a previous version of Blockly. Is this the kind of feature you're looking to add?

Feature website
https://fustyles.github.io/webduino/SpBlocklyJS/index.html?lang=en

Toolbox-search source code
https://github.com/fustyles/webduino/tree/master/SpBlocklyJS/mySearch


Best Wishes
fu6...

'epas...@google.com' via Blockly <blo...@googlegroups.com> 於 2025年8月21日 週四 上午12:25寫道:
--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/blockly/26dcfcc6-19c7-4347-8003-d91be23b2527n%40googlegroups.com.
toolbox-search.mp4
Message has been deleted

Evan ARNAUD

unread,
Aug 25, 2025, 11:23:49 AM (13 days ago) Aug 25
to Blockly
thanks fu6, your toolbox-search code will be of good help to create my own, it give usefull informations,
i will also look into the implementation of the official toolbox-search because i prefer their look (having the searchbox into the toolbox)

Evan ARNAUD

unread,
Aug 26, 2025, 11:29:47 AM (12 days ago) Aug 26
to Blockly
i've successfully implement my custom "toolbox-search" using the code at https://github.com/google/blockly-samples/blob/master/plugins/toolbox-search/src/toolbox_search.ts
thanks
Reply all
Reply to author
Forward
0 new messages