• How do I make keyboard shortcuts less "atomic"?

    From Luc@21:1/5 to All on Thu Mar 16 01:24:49 2023
    I press Ctrl+f and search for a string in a text widget.

    The matches are all highlighted.

    Then I press Ctrl+PageDown to jump to the next string match.

    I can also press Ctrl+PageUp to jump to the previous match.

    All fine and dandy except that I have to press the key combination
    then release it, then press the key combination again, release it
    again, press it again, release it again, press it again, release it
    again...

    In all other applications I can think of, I can just keep Ctrl
    constantly pressed and additionally press PageDown or PageUp to
    navigate freely and say "Wheeeee!" But Tcl/Tk require that I keep
    re-pressing and re-releasing the complete shortcuts every time or
    they won't work.

    How can I overcome this annoyance?

    --
    Luc


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andreas Leitgeb@21:1/5 to Luc on Thu May 11 11:40:55 2023
    Luc <[email protected]d> wrote:
    On Tue, 9 May 2023 11:23:26 -0000 (UTC), Andreas Leitgeb wrote:
    Not sure if this is still open a month later, but I didn't see
    any followups
    I tried (in a fresh wish):
    % bind . <Control-Next> {puts Ctrl-Down}
    % bind . <Control-Prior> {puts Ctrl-Up}

    I'm still here and reading so the issue is still "open." Your message
    is noted and appreciated. I will look into it. Sounds like I need to.

    In the meantime I saw other threads near to that topic, and the real
    solution seems to be for you to bind to the correct events.

    correct: <Control-Next>
    wrong: <Control_L><Next>

    Ditto in other newsgroup-threads: <Alt-...> instead of <Alt_L><...>

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