Code Monkey home page Code Monkey logo

Comments (5)

mnn avatar mnn commented on July 21, 2024

After some digging it seems it's a bug in GTK2. Fuzzy matching of accelerators has apparently priority over key code - who the hell could wrote such thing?! Only way of fixing it I could think of (with my very poor GTK and Python knowledge) is implementing shortcuts rebinding support.

Also note that changing keyboard layout just for CherryTree is not possible when one wants to write notes in other language, so no easy workaround here :/. I probably end up hacking cons.py to Czech accelerators which is very bad solution updating-wise. * sad *

from cherrytree.

mnn avatar mnn commented on July 21, 2024

So changing values in cons.py did not yield results. I think the bug is in on_key_press_window in core - it should not use already interpreted keyname but scancode. Unfortunately hardware_keycode property of event contains already mapped values (at least on Windows - number changes when I switch kb layouts). I am hopeless.

from cherrytree.

giuspen avatar giuspen commented on July 21, 2024

Hi, what is your os and keyboard layout and what are the broken shortcuts
On 30 May 2015 20:13, "monnef" [email protected] wrote:

So changing values in cons.py did not yield results. I think the bug is in
on_key_press_window in core - it should not use already interpreted keyname
but scancode. Unfortunately hardware_keycode property of event contains
already mapped values (at least on Windows - number changes when I switch
kb layouts). I am hopeless.


Reply to this email directly or view it on GitHub
#39 (comment).

from cherrytree.

mnn avatar mnn commented on July 21, 2024

Windows 7 64b, Python 2.7.10, default CS keyboard (QWERTZ). All shortcuts containing a number are wrongly listed, e.g. to trigger a shortcut ctrl + 1 I have to press ctrl + shift + 1, to trigger a shortcut ctrl + + I have to press a ctrl + 1.

So in the end it is possible to use them, but it's quite cumbersome - e.g. a list is produced by pressing ctrl + alt + shift + 1.

Introducing custom key bindings or not using keyboard layout for accelerators would IMO solve this issue.

from cherrytree.

txe avatar txe commented on July 21, 2024

Possibly it was related to Gkt2, and fixed in Gtk3

from cherrytree.

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.