Giter Site home page Giter Site logo

Comments (5)

hantu85 avatar hantu85 commented on May 18, 2024

I've just reviewed the behavior of apps on macOS (like Messages, Bear, Notes, Reminders, Mail) and each app has different behavior for CMD-Backspace, ie.:

  • Messages: delete chat (same as BeagleIM)
  • Bear: delete note
  • Notes: delete line
  • Reminder: delete line
  • Mail: delete a message in the list view and delete a line in the message entering window

As you can see, CMD-Backspace means delete line or item (ie. note, chat), so usage of CMD-Backspace is correct in this case.

On the suggestion of usage CMD-W to close the chat - it is not how applications behave on macOS. CMD-W means "close the window" not close the chat!

I'm open on other alternatives for a shortcut to close a chat, but for now, closing on CMD-Backspace when the input field is empty looks like a most viable solution.

from beagle-im.

neur0manc avatar neur0manc commented on May 18, 2024

CMD-W is widely used to close tabs, see any browser (safari, chrome, brave), or terminal emulators (iterm2 and terminal.app both). Text editors also do behave like this. VSCode to name one.

CMD-Backspace in Apple Messages behaves exactly as I described it: When a text-entry field is focused, CMD-Backspace deletes the whole lin. It does not close the current chat. Also you've mentioned a few apps that behave like this, i.e. when inside a text entry widget, CMD-Backspace removes a line. IMO that underlines that beagle-im should also remove a line, instead of closing the chat.

More examples are Telegram and WhatsApp.

from beagle-im.

hantu85 avatar hantu85 commented on May 18, 2024

I've double-checked and Apple Messages closes chat (and even deletes the content of the chat) when text field has focus but it is empty and you pressed CMD-Backspace.

Due to that, I'm going to follow what Apple Messages does: if there is a line - remove it, if text filed is empty - close chat.

from beagle-im.

neur0manc avatar neur0manc commented on May 18, 2024

I'm going to follow what Apple Messages does: if there is a line - remove it, if text filed is empty - close chat.

Nice, thank you!

from beagle-im.

jnaeff avatar jnaeff commented on May 18, 2024

It works great thanks for solving this!

from beagle-im.

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.