Giter Site home page Giter Site logo

Comments (10)

slook avatar slook commented on June 20, 2024 1

Unfortunately the 3.2.x branch will not be getting any more bug fixes now. Development is happening in 3.3.x wherein the issue you reported may already be fixed, or it may present differently since GTK 4 is now the default.

Please install Nicotine+ 3.3.0.dev6 to verify if the problem still exists or not, link:

https://github.com/nicotine-plus/nicotine-plus/blob/master/doc/TESTING.md#macos

from nicotine-plus.

ewof avatar ewof commented on June 20, 2024 1

bug is still there on 3.3.0.dev6

from nicotine-plus.

slook avatar slook commented on June 20, 2024

Please can you try some Keyboard Shortcuts (press F1 for a list) that involve the Control/Command key and verify that they work as expected, or are they with the incorrect modifier key?

from nicotine-plus.

ewof avatar ewof commented on June 20, 2024

seams to be related to tabs, things like cmd + h for away and shift + cmd + d/c for disconnecting/connecting work but things like cmd + a or cmd + f in downloads tab don't

from nicotine-plus.

slook avatar slook commented on June 20, 2024

I suspect that the cmd key modifier or mouse button keyval is being consumed by the Accelerator() class module.

from nicotine-plus.

mathiascode avatar mathiascode commented on June 20, 2024

I suspect that the cmd key modifier or mouse button keyval is being consumed by the Accelerator() class module.

The problem is that the treeview shortcuts are provided by GTK, which no longer translates ctrl -> cmd in GTK 4.

We need to add the shortcuts like this (should probably override them in the TreeView class):

# Built-in GTK shortcuts use Ctrl key on macOS, add shortcuts that use Command key
for widget in (Gtk.Text, Gtk.TextView):
for action_name, accelerator in (
("cut-clipboard", "<Meta>x"),
("copy-clipboard", "<Meta>c"),
("paste-clipboard", "<Meta>v"),
("selection.select-all", "<Meta>a"),
("misc.insert-emoji", "<Meta>period"),
("text.undo", "<Meta>z"),
("text.redo", "<Shift><Meta>u")
):
widget.add_shortcut(
Gtk.Shortcut(
trigger=Gtk.ShortcutTrigger.parse_string(accelerator),
action=Gtk.NamedAction(action_name=action_name),
)
)

@ewof I'm not sure if GTK supports control click. Could you try e.g. Gaphor, and see if it has the same issue? https://gaphor.org/en/

Does macOS support pressing the trackpad with two fingers to show context menus?

from nicotine-plus.

ewof avatar ewof commented on June 20, 2024

Does macOS support pressing the trackpad with two fingers to show context menus?

i don't think so, got the laptop like 2 weeks ago it's my first mac, i'm not able to use two fingers to show context menus

same issue on graphor yea, control click with trackpad doesn't work but right click with mouse works

from nicotine-plus.

mathiascode avatar mathiascode commented on June 20, 2024

i don't think so, got the laptop like 2 weeks ago it's my first mac, i'm not able to use two fingers to show context menus

You can change this behavior in the macOS touchpad settings.

As for adding control click to Nicotine+, should be fairly straightforward with our own context menus.

from nicotine-plus.

mathiascode avatar mathiascode commented on June 20, 2024

In any case, not a blocker for Nicotine+ 3.3.0, since there's a workaround.

from nicotine-plus.

slook avatar slook commented on June 20, 2024

This seems like it would be ideal to fix it upstream and add it to #2014.

from nicotine-plus.

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.