diff options
| author | Eli Zaretskii | 2013-10-15 21:40:22 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-10-15 21:40:22 +0300 |
| commit | 6456c0ea41cc16e94943ff9c4c20d35f94bdbbf7 (patch) | |
| tree | 326618c8b06adf0baff15b5c3b2cce6d47778c3c | |
| parent | 5d64d7704ec60bcc95084173336851c5822f8ca5 (diff) | |
| download | emacs-6456c0ea41cc16e94943ff9c4c20d35f94bdbbf7.tar.gz emacs-6456c0ea41cc16e94943ff9c4c20d35f94bdbbf7.zip | |
Support mouse wheel in TTY menus.
lisp/menu-bar.el (tty-menu-navigation-map): Bind mouse wheels to TTY
menu navigations commands.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/menu-bar.el | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ea25c557a51..ec92c2b5c29 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-10-15 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * menu-bar.el (tty-menu-navigation-map): Bind mouse wheels to TTY | ||
| 4 | menu navigations commands. | ||
| 5 | |||
| 1 | 2013-10-14 Dima Kogan <dima@secretsauce.net> (tiny change) | 6 | 2013-10-14 Dima Kogan <dima@secretsauce.net> (tiny change) |
| 2 | 7 | ||
| 3 | * progmodes/subword.el (subword-capitalize): Be careful when | 8 | * progmodes/subword.el (subword-capitalize): Be careful when |
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 7a53f968d69..368fb289c36 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -2341,6 +2341,10 @@ If FRAME is nil or not given, use the selected frame." | |||
| 2341 | (define-key map [linefeed] 'tty-menu-select) | 2341 | (define-key map [linefeed] 'tty-menu-select) |
| 2342 | (define-key map [down-mouse-1] 'tty-menu-select) | 2342 | (define-key map [down-mouse-1] 'tty-menu-select) |
| 2343 | (define-key map [drag-mouse-1] 'tty-menu-select) | 2343 | (define-key map [drag-mouse-1] 'tty-menu-select) |
| 2344 | (define-key map [wheel-down] 'tty-menu-next-item) | ||
| 2345 | (define-key map [wheel-up] 'tty-menu-prev-item) | ||
| 2346 | (define-key map [wheel-left] 'tty-menu-prev-menu) | ||
| 2347 | (define-key map [wheel-right] 'tty-menu-next-menu) | ||
| 2344 | ;; The following 4 bindings are for those whose text-mode mouse | 2348 | ;; The following 4 bindings are for those whose text-mode mouse |
| 2345 | ;; lack the wheel. | 2349 | ;; lack the wheel. |
| 2346 | (define-key map [S-down-mouse-1] 'tty-menu-next-item) | 2350 | (define-key map [S-down-mouse-1] 'tty-menu-next-item) |