• Re: Ctrl+Shift bindings

    From Schelte@21:1/5 to Luc on Wed Dec 13 18:13:59 2023
    On 13/12/2023 17:56, Luc wrote:
    I am struggling to find out how to send multiple key presses to bind
    such as Ctrl+Shift+o or Ctrl+Alt+d.

    <Control_L><Shift_L><o> doesn't work. I also tried a few other formats
    and none works.

    As I think you've been told before, you shouldn't use key sequences for
    this. You will probably have much more luck by using modifiers instead.

    <Control-Alt-d> for Ctrl+Alt+d
    <Control-Shift-O> for Ctrl+Shift+o

    Due to the shift key being pressed, pressing the "o" key will produce a
    capital "O". That's why you have to use "O" in the binding.
    <Control-Shift-o> will only work if CapsLock is on.

    I have successfully tested all three mentioned bindings.


    Schelte.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luc@21:1/5 to All on Wed Dec 13 13:56:55 2023
    I am struggling to find out how to send multiple key presses to bind
    such as Ctrl+Shift+o or Ctrl+Alt+d.

    <Control_L><Shift_L><o> doesn't work. I also tried a few other formats
    and none works.

    I tried Google and the wiki and even found a couple of rather complex discussions on the inner workings of binding, but still don't know
    how to accomplish it.

    Can you please help again?

    --
    Luc


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Luc@21:1/5 to Schelte on Mon Dec 18 14:17:40 2023
    On Wed, 13 Dec 2023 18:13:59 +0100, Schelte wrote:

    On 13/12/2023 17:56, Luc wrote:
    I am struggling to find out how to send multiple key presses to bind
    such as Ctrl+Shift+o or Ctrl+Alt+d.

    <Control_L><Shift_L><o> doesn't work. I also tried a few other formats
    and none works.

    As I think you've been told before, you shouldn't use key sequences for
    this. You will probably have much more luck by using modifiers instead.

    <Control-Alt-d> for Ctrl+Alt+d
    <Control-Shift-O> for Ctrl+Shift+o

    Due to the shift key being pressed, pressing the "o" key will produce a >capital "O". That's why you have to use "O" in the binding.
    <Control-Shift-o> will only work if CapsLock is on.

    I have successfully tested all three mentioned bindings.


    Schelte.

    **************************

    <Control_L><KP_Add> works.

    <Alt_L><KP_Add> works.

    <Control_L><Alt_L><KP_Add> doesn't work.

    <Control-Alt-KP_Add> doesn't work.

    Is it possible? How?

    --
    Luc


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Schelte@21:1/5 to Luc on Fri Dec 22 10:13:01 2023
    On 18/12/2023 18:17, Luc wrote:
    <Control-Alt-KP_Add> doesn't work.

    Even binding to <Key> does not show any event for the final keystroke of
    this combination. So it seems that <Control-Alt-KP_Add> is intercepted
    by the window manager; it does not get delivered to Tk.


    Schelte.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)