Giter Site home page Giter Site logo

Comments (3)

mikke89 avatar mikke89 commented on August 30, 2024

Thanks for the suggestion. Certainly sounds like a feature that we could add, I'd happily take a pull request.

I guess the reason this hasn't been implemented yet, is the assumption that users control the input side already, so they could do their actions directly on the library when receiving a right click. I guess a built-in event could add some value with proper event handling and propagation, and playing better with data bindings and scripting. It would be nice to understand the use case a bit better, could you elaborate on that a bit?

from rmlui.

ChrisFloofyKitsune avatar ChrisFloofyKitsune commented on August 30, 2024

The main uses I see for this in what I'm working on (and in general) is to be able to right click usernames in a chat window or a player list- bringing up a small menu for things like Ignore, Whisper, Add Friend, Report, etc

it's a lot more friendly than having a weird crtl/shift/alt+mouse button keybind or having to type in a /command into the chat to do the same.

from rmlui.

mikke89 avatar mikke89 commented on August 30, 2024

Yeah, I fully see the need for a context menu. I'm just trying to understand which alternatives you have considered for opening them and if they have any limitations. In particular, the library already submits mousedown and mouseup events also during right-click. Do these alternatives work well for you? I guess the semantics of contextmenu is more appropriate, so that should be reason enough to implement this.

Alternatively, the client can always open menus as desired, after all, the client supplies the information to the library about right mouse button being clicked, so they can act on that independently.

from rmlui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.