Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
How to find the existing default action for a UI gadget in factor
For a UI gadget like a $link
in Factor, a click automatically opens the page that it points to. I want to know where this default behaviour is defined.
In the factor documentation, there are many places which I've checked so far:
- handle-gesture
- set-gestures
- panes and presentation gadgets
But I'm unable to find where these things are used for the markup elements I want to modify, like $url
and $link
. Is there a word or just a way to grep that can help with this, finding gesture hooks for a UI/markup element?
1 answer
The following users marked this post as Works for me:
User | Comment | Date |
---|---|---|
Razetime | (no comment) | Jan 27, 2023 at 10:03 |
From mrjbq7:
The correct vocabularies for finding default actions are in
- Operations
-
Web Browser for
URL"
markdown elements.
Generally, looking for define-operation
should work for finding the default action for a clickable markup element.
0 comment threads