patch 9.1.1562: close button always visible in the 'tabline'
Problem: close button "X" is visible in the non-GUI 'tabline', even
when the mouse is disabled
Solution: only show the button when 'mouse' contains any of the flags
"anvi" (Girish Palya)
The tabline always displays an "X" (close) button, and the info popup
shows both a close button and a resize handle—even when the mouse is
disabled. These UI elements are only actionable with the mouse and serve
no purpose for keyboard users who disable the mouse. Displaying
non-functional, clickable elements in a non-GUI environment is
misleading and adds unnecessary visual clutter.
So remove the close button and resize handle when the mouse is disabled.
They appear again when mouse is enabled.
closes: #17765
Signed-off-by: Girish Palya <girishji@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
b7fc24d3a3
commit
fb45809f01
@ -1,4 +1,4 @@
|
||||
*insert.txt* For Vim version 9.1. Last change: 2025 Jul 05
|
||||
*insert.txt* For Vim version 9.1. Last change: 2025 Jul 17
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -1258,13 +1258,16 @@ of values:
|
||||
Example: >
|
||||
:set completepopup=height:10,width:60,highlight:InfoPopup
|
||||
|
||||
When the "align" value is "item" then the popup is positioned close to the
|
||||
selected item. Changing the selection will also move the popup. When "align"
|
||||
is "menu" then the popup is aligned with the top of the menu if the menu is
|
||||
below the text, and the bottom of the menu otherwise.
|
||||
When `"align"` is set to `"item"`, the popup is positioned near the selected
|
||||
item, and moves as the selection changes.
|
||||
When set to `"menu"`, the popup aligns with the top of the menu (if the menu
|
||||
appears below the text), or with the bottom (if the menu appears above).
|
||||
|
||||
After the info popup is created it can be found with |popup_findinfo()| and
|
||||
properties can be changed with |popup_setoptions()|.
|
||||
If the 'mouse' is enabled, a close button and resize handle will appear on the
|
||||
popup border.
|
||||
|
||||
After creation, the info popup can be located with |popup_findinfo()| and
|
||||
modified using |popup_setoptions()|.
|
||||
|
||||
*complete-popuphidden*
|
||||
If the information for the popup is obtained asynchronously, use "popuphidden"
|
||||
|
||||
Reference in New Issue
Block a user