Commit b7fc883
committed
Fix which-key dismissal and context popup floating
Changes:
1. Which-key window now disappears immediately when any key is pressed
2. Context edit popup now properly floats with border and background
Which-Key Dismissal Fix:
- Removed defer function (doesn't work with value receiver)
- Set leaderActive = false immediately at start of handler
- Window now vanishes as soon as you press an action key
- More responsive UI feedback
Context Popup Floating Fix:
- Added proper border styling with RoundedBorder
- Added dark background (#1a1a2e) for contrast
- Added padding (1, 2) for visual separation
- Border color (#4a4a6a) matches theme
- Width automatically adjusts to content + 4 chars padding
- Now clearly floats above/over content instead of displacing it
The popup now visually pops out from the underlying content
with a proper modal dialog appearance.1 parent 8c0f495 commit b7fc883
1 file changed
+20
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1414 | 1414 | | |
1415 | 1415 | | |
1416 | 1416 | | |
1417 | | - | |
1418 | | - | |
| 1417 | + | |
| 1418 | + | |
1419 | 1419 | | |
1420 | 1420 | | |
1421 | 1421 | | |
| |||
2382 | 2382 | | |
2383 | 2383 | | |
2384 | 2384 | | |
2385 | | - | |
2386 | | - | |
2387 | 2385 | | |
2388 | 2386 | | |
2389 | 2387 | | |
| |||
2409 | 2407 | | |
2410 | 2408 | | |
2411 | 2409 | | |
2412 | | - | |
2413 | | - | |
2414 | | - | |
2415 | | - | |
2416 | | - | |
| 2410 | + | |
| 2411 | + | |
| 2412 | + | |
| 2413 | + | |
| 2414 | + | |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
| 2418 | + | |
| 2419 | + | |
| 2420 | + | |
| 2421 | + | |
| 2422 | + | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
2417 | 2427 | | |
2418 | | - | |
| 2428 | + | |
2419 | 2429 | | |
2420 | 2430 | | |
2421 | 2431 | | |
| |||
0 commit comments