Code Monkey home page Code Monkey logo

octos's Issues

Packaging issues

Two issues:

  • Zip packaging - would it be possible to continue packaging the application as a zip file in future? Version 1.0.0 release has a zip but 1.0.1 doesn't. This would allow me to write a package to allow users to install it with Scoop (package manager for Windows).
  • Consistent versioning - version 1.0.1 release reports itself to be version 1.0.2. This causes issues for package managers!

Can not focus on a contenteditable div on the desk

I want to make a desktop memo and I create a content editable div (Dragable as well).
If I try to edit it, that works. However, if I try to use hotkeys or Enter, it goes badly.
And Enter will return "Ret" and may launch apps on the desk.

Here is my code.
`

<style> #mytextbox { width: 200px; height: 100px; background-color: #f2f2f2; border: 1px solid #ccc; padding: 10px; position: absolute; left: 0; top: 0; cursor: move; } </style>
Drag me around and edit me!
<script type="text/javascript"> var mytextbox = document.getElementById("mytextbox"); var isDragging = false; var dragStartX, dragStartY; mytextbox.addEventListener("mousedown", function(event) { isDragging = true; dragStartX = event.clientX - mytextbox.offsetLeft; dragStartY = event.clientY - mytextbox.offsetTop; mytextbox.style.cursor = "move"; }); document.addEventListener("mousemove", function(event) { if (isDragging) { mytextbox.style.left = (event.clientX - dragStartX) + "px"; mytextbox.style.top = (event.clientY - dragStartY) + "px"; } }); document.addEventListener("mouseup", function(event) { isDragging = false; mytextbox.style.cursor = "default"; }); </script>

`

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.