Tags: patch Hi, The following patch fixes the "previous menu" shortcut in tmm-menubar when one has already used Up/Down keys into a submenu. How to reproduce the bug: - M-x tmm-menubar - t ;; for the Tools menu - Down ;; to circulate to the first entry - ^ ;; quits tmm but should go back to toplevel instead While here, explain a "Why?" comment. In GNU Emacs 31.0.50 (build 86, x86_64-unknown-openbsd7.6, X toolkit) of 2024-11-01 built on computer Repository revision: ffda8dfe847094bd8488059be2f96270fe298fa5 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101013 System Description: OpenBSD computer 7.6 GENERIC.MP#394 amd64 Configured using: 'configure CC=egcc CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib MAKEINFO=gmakeinfo --prefix=/home/manuel/emacs --bindir=/home/manuel/bin --with-x-toolkit=lucid --with-toolkit-scroll-bars=no --without-cairo --without-compress-install'