mirror of
https://github.com/BoostIO/BoostNote-App.git
synced 2026-04-27 05:15:56 +03:00
[GH-ISSUE #63] Context menu #50
Labels
No labels
android 🤖
assigned to core 🦹
bug 🐛
documentation 📚
documentation 📚
duplicate 🚫
external issue 🔼
external issue 🔼
feature request 🌟
funded on issuehunt 💵
help wanted 🆘
improvement request 🔨
improvement request 🔨
ios 🍎
mobile 📱
needs investigation 🔬
needs more info ℹ️
needs specs 📐
plugin idea 🔌
plugin idea 🔌
poll 🗳️
pull-request
question ❓
rewarded on issuehunt 🎁
security issue 🔑
won’t fix ❌
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/BoostNote-App#50
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Rokt33r on GitHub (Jan 11, 2019).
Original GitHub issue: https://github.com/BoostIO/BoostNote-App/issues/63
We need contextmenu for web browser like https://github.com/vkbansal/react-contextmenu
Unfortunately, it doesn't have any type definitions. So we need to rewrite this for our app.It has type definitions. We can use it for now.
@Rokt33r commented on GitHub (Jan 24, 2019):
I've changed my mind. I'm now implementing it by myself. Using focus/blur event works quite well.
@ZeroX-DG commented on GitHub (Jan 24, 2019):
I have tried to implement this in my app. The problem I met was when the mouse is too close to the edge of the screen, the menu will be out of view so I have to re-calculate the menu coordinate.
@ZeroX-DG commented on GitHub (Jan 24, 2019):
I also separated the core functionality of the context menu into a module inside my
modules/folder so that I can re-use it to create different types of context menu. For example, I have a regular context menu which is just a simple popup when right-clicking and an editor context menu which is also a popup on right-click but it also has a part that shows shortcut key so I can just create an editor context menu that extends the base context menu.@Rokt33r commented on GitHub (Jan 25, 2019):
@ZeroX-DG As you see in the video, it re-calculates before shows the menu.
And, it can be quite reusable because the api is almost same to the one of electron.
@ZeroX-DG commented on GitHub (Jan 25, 2019):
Nice! Can't wait to see how it looks. My implementation for context menu is not very stable, maybe I'll learn something from this.