-
Notifications
You must be signed in to change notification settings - Fork 2
Modeline keybindings #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -194,6 +194,12 @@ AVG-MEMORY-USE is a list of averages, with the same meaning as | |
| "<tab-line> <mouse-2>" #'window-tool-bar--call-button | ||
| "<tab-line> <double-mouse-2>" #'window-tool-bar--call-button | ||
| "<tab-line> <triple-mouse-2>" #'window-tool-bar--call-button | ||
| "<mode-line> <mouse-1>" #'window-tool-bar--call-button | ||
| "<mode-line> <double-mouse-1>" #'window-tool-bar--call-button | ||
| "<mode-line> <triple-mouse-1>" #'window-tool-bar--call-button | ||
| "<mode-line> <mouse-2>" #'window-tool-bar--call-button | ||
| "<mode-line> <double-mouse-2>" #'window-tool-bar--call-button | ||
| "<mode-line> <triple-mouse-2>" #'window-tool-bar--call-button | ||
|
|
||
| ;; Mouse down events do nothing. A binding is needed so isearch | ||
| ;; does not exit when the tab bar is clicked. | ||
|
|
@@ -202,7 +208,13 @@ AVG-MEMORY-USE is a list of averages, with the same meaning as | |
| "<tab-line> <triple-down-mouse-1>" #'window-tool-bar--ignore | ||
| "<tab-line> <down-mouse-2>" #'window-tool-bar--ignore | ||
| "<tab-line> <double-down-mouse-2>" #'window-tool-bar--ignore | ||
| "<tab-line> <triple-down-mouse-2>" #'window-tool-bar--ignore) | ||
| "<tab-line> <triple-down-mouse-2>" #'window-tool-bar--ignore | ||
| "<mode-line> <down-mouse-1>" #'window-tool-bar--ignore | ||
| "<mode-line> <double-down-mouse-1>" #'window-tool-bar--ignore | ||
| "<mode-line> <triple-down-mouse-1>" #'window-tool-bar--ignore | ||
| "<mode-line> <down-mouse-2>" #'window-tool-bar--ignore | ||
| "<mode-line> <double-down-mouse-2>" #'window-tool-bar--ignore | ||
| "<mode-line> <triple-down-mouse-2>" #'window-tool-bar--ignore) | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you sure this is needed? This is intended to be handled by just a few lines below: |
||
|
|
||
| ;; Allow the window tool bar to be placed in header line or mode line | ||
| ;; as well. These use different keymap prefixes. | ||
|
|
@@ -354,7 +366,8 @@ MENU-ITEM is a menu item to convert. See info node `(elisp)Tool Bar'." | |
| str)) | ||
| (enabled | ||
| (add-text-properties 0 len | ||
| '(mouse-face window-tool-bar-button-hover | ||
| '(mouse-face | ||
| window-tool-bar-button-hover | ||
| keymap window-tool-bar--button-keymap | ||
| face window-tool-bar-button) | ||
| str)) | ||
|
|
@@ -426,7 +439,7 @@ enclosed in a `progn' form. ELSE-FORMS may be empty." | |
| (defvar window-tool-bar--ignored-event-types | ||
| (let ((list (append | ||
| '(mouse-movement pinch | ||
| wheel-down wheel-up wheel-left wheel-right) | ||
| wheel-down wheel-up wheel-left wheel-right) | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please revert this line -- it's not proper indentation for Emacs data lists. |
||
| ;; Prior to emacs 30, wheel events could also surface as | ||
| ;; mouse-<NUM> buttons. | ||
| (window-tool-bar--static-if (version< emacs-version "30") | ||
|
|
@@ -614,9 +627,9 @@ will always return the symbol text." | |
| (let ((tool-bar-always-show-default nil)) | ||
| (if (and (version< emacs-version "30") | ||
| (eq 'text (window-tool-bar--style))) | ||
| ;; This code path is a less efficient workaround. | ||
| (window-tool-bar--make-keymap-1) | ||
| (keymap-global-lookup "<tool-bar>")))) | ||
| ;; This code path is a less efficient workaround. | ||
| (window-tool-bar--make-keymap-1) | ||
| (keymap-global-lookup "<tool-bar>")))) | ||
|
|
||
| (declare-function image-mask-p "image.c" (spec &optional frame)) | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense, looks like a gap in the logic.