Git Product home page Git Product logo

Comments (2)

univer-bot avatar univer-bot commented on June 29, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Origin Title: Hold down ctrl to select multiple cells, then click to get cell information[Bug]

Title: Hold down ctrl to select multiple cells, then click to get cell information[Bug]


Before you submitted this question, did you check the following?

  • Is this really a problem?
  • I've searched Github Issues but haven't found any similar issues.

Affected packages and versions

"@univerjs/core": "^0.1.15"

Recurrence link

https://univer.ai/playground?title=Vite

Expected behavior

const univerAPI = FUniver.newAPI(univer);
const activeWorkbook = univerAPI.getActiveWorkbook();
const activeSheet =activeWorkbook.getActiveSheet();
activeWorkbook.onSelectionChange((params)=>{
    console.log(params);
})

or

univerAPI.onCommandExecuted((command)=>{
    const { id, type, params } = command;
    if (id === 'sheet.operation.set-selections') {
        console.log(params);
    }
});

For example, I select two cells with ctrl, then hold down the ctrl key while clicking to get information about both cells

Actual behavior

Its selections add duplicate data with each operation
image
When a mouse click is performed, the same shee.Operation. set-selections command is triggered twice
image

Running environment

Safari

system message

No response

from univer.

Dushusir avatar Dushusir commented on June 29, 2024

Repeated selection of a selection should require deselection instead of repeating it. This is not implemented yet, but compatibility with Excel will be considered in the future.
selection

from univer.

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.