There should be a Keyboard shortcut for the AI chat sidebar
Categories
(Firefox :: Keyboard Navigation, enhancement, P1)
Tracking
()
People
(Reporter: rdoghi, Assigned: Mardak)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [genai])
Attachments
(1 file)
Found in
- Nightly 129.0a1
Affected versions
- Nightly 129.0a1 (2024-06-27)
Affected platforms
- All
Steps to reproduce
- Reach about:preferences#experimental page.
- Enable the AI Chat integration.
- Select the ChatGP AI provider and login.
Expected result
- There should be a keyboard shortcut for the AI Chat sidebar similar to Ctrl B/H for the Bookmarks/History sidebar
Actual result
- There is no keyboard shortcut for the AI chat sidebar.
Regression range
Not a regression.
Assignee | ||
Updated•4 months ago
|
Updated•4 months ago
|
Assignee | ||
Comment 1•4 months ago
|
||
ania mentioned finding an appropriate 3-key shortcut. some complication might come from chatbot only conditionally available, i.e., requires enabling
Modifier + Shift + I seems to be available.
Francesco, I wonder if you have any concerns about using this shortcut from a localization standpoint?
Comment 3•4 months ago
|
||
Not that I can think of, as i
should be available on most keyboard layouts.
P.S. for localization questions related to Firefox, :bolsson
is a good point of contact these days.
Assignee | ||
Comment 4•4 months ago
|
||
ania, should this keyboard shortcut enable chabot if not already enabled from firefox labs?
Assignee | ||
Comment 5•4 months ago
|
||
Toggle chatbot with accel-shift-i.
Updated•4 months ago
|
Thank you so much, Francesco and Ed.
Will poke Bryan on the localization questions from now on.
Ed, +1 to enabling.
Updated•4 months ago
|
Assignee | ||
Updated•4 months ago
|
Assignee | ||
Comment 9•4 months ago
•
|
||
devtools macos keyboard shortcut is cmd-alt-i whereas windows is ctrl-shift-i. so a general accel/ctrl-shift-i for chatbot conflicts on windows
should i make chatbot ctrl-alt-i on windows and cmd-shift-i macos (basically the opposite alt vs shift of web developer tools)? or find a different key
at a glance, the only time alt is used on windows is for ctrl-shift-alt-i for browser toolbox (more "advanced" devtools)
Assignee | ||
Comment 10•4 months ago
•
|
||
actually, looks like ctrl/cmd-e might be available? nevermind, cmd-e is some macos specific feature to put selected text to find in page and ctrl-e is search on windows for ie compatibility (in addition to cmd/ctrl-k)
cmd/ctrl-shift y or u or l seem available?
Assignee | ||
Updated•4 months ago
|
Comment 11•4 months ago
|
||
Ctrl+Shift+I does nothing different than F12. Could you just replace it? If not, I believe Ctrl + Shift + F doesn't do anything on Windows. Though Cmd + Shift + F is Recents in Mac.
Assignee | ||
Comment 12•4 months ago
•
|
||
bolsson, is "L" good? we'll try ctrl-shift-l / cmd-shift-l to avoid using ctrl-alt-i on windows (as it seems like convention is to avoid alt as it's accessibility/menus)
i'll update the patch assuming yes but wait before trying to land again
Comment 13•4 months ago
|
||
(In reply to Ed Lee :Mardak from comment #12)
bolsson, is "L" good? we'll try ctrl-shift-l / cmd-shift-l to avoid using ctrl-alt-i on windows (as it seems like convention is to avoid alt as it's accessibility/menus)
i'll update the patch assuming yes but wait before trying to land again
No issues from an l10n perspective.
Comment 14•4 months ago
|
||
Comment 15•4 months ago
|
||
bugherder |
Comment 16•4 months ago
|
||
Backed out as requested by Mardak for causing 1927304.
Updated•4 months ago
|
Assignee | ||
Comment 17•4 months ago
|
||
bug 1927304 comment 5 suggests the other keyboard shortcuts suggested in comment 10 will not work either especially with the behavior to enable the feature and suggested the feature should allow for disabling the shortcut when enabled by default
perhaps we should go with the ctrl-alt-i / cmd-shift-i opposite alt/shift of devtools?
Comment 18•3 months ago
|
||
(In reply to Ed Lee :Mardak from comment #17)
bug 1927304 comment 5 suggests the other keyboard shortcuts suggested in comment 10 will not work either
Yup - Comment 10 suggested ctrl/cmd-shift y, u, l, none of which are available on my Ubuntu machine:
- Ctrl+Shift+y opens up Firefox's bookmarks/history "library" window.
- Ctrl+Shfit+u opens up a system-level UI to enter a special unicode character.
- Ctrl+Shift+l triggers the BitWarden autofill-password UI (per bug 1927304).
perhaps we should go with the ctrl-alt-i / cmd-shift-i opposite alt/shift of devtools?
For me at least, those keybindings don't seem to do anything & hence seem to be available. (I tested Ctrl+Alt+i on Win11 and Ubuntu, and Cmd+Shift+i on macOS.)
(Though: the fact that they're available means that surely some other extension or productivity tool has independently found them to be available and is using them, so we shouldn't coopt the keybinding except for users who've already got the AI sidebar enabled; and we should consider adding a setting to disable the keybinding for such users as well before default-enabling the feature, as alluded to in comment 17.)
Comment 19•2 months ago
|
||
Hi folks,
We did some in-depth look into available shortcuts in [https://bugzilla.mozilla.org/show_bug.cgi?id=1897411](this ticket) and we ended up picking this combination for expanding sidebar:
Ctrl + Z (macOS)/ Ctrl + alt + Z (Linux and Windows)
Other open options that we can use for the chatbot panel include:
The only key combination that can be somewhat conveniently pressed with one hand:
Ctrl + X (macOS)/ Ctrl + alt + X (Windows/Linux)
The rest of the open key combinations are a little less convenient from the perspective of muscle memory:
Ctrl + C / Ctrl + alt + C
Ctrl + I / Ctrl + alt + I
Ctrl + J / Ctrl + alt + J
Ctrl + Q / Ctrl + alt + Q
Ctrl + W / Ctrl + alt + W
Ctrl + Y / Ctrl + alt +Y
Ctrl + U / Ctrl + alt + U
Comment 20•2 months ago
|
||
Give just how important the AI functionality will be I see no reason why it could not be something like CTRL-Space?
Comment 21•2 months ago
|
||
Comment 22•2 months ago
|
||
Backed out for causing failures @ test_no_errors_clean_profile
Backout link: https://hg.mozilla.org/integration/autoland/rev/ff6bebebdcdfbc438a1940b43de1f9a3d3bb1c4c
Assignee | ||
Comment 23•2 months ago
|
||
ania, there's a test that is failing: Key event not available on some keyboard layouts: key=“x” modifiers=“control,alt” id=“viewGenaiChatSidebarKb”
and presumably prevents ctrl-alt-z too for sidebar bug 1897411
perhaps there's a reason why there's no "command,alt" keyboard shortcuts https://searchfox.org/mozilla-central/search?q=control%2Calt
so potentially these need to be ctrl-shift-key as maybe alt isn't generally allowed for windows/linux? fwiw, ctrl-alt-x does function correctly on my windows vm when testing this out
Comment 24•2 months ago
|
||
Assignee | ||
Comment 25•2 months ago
|
||
allowing the warning for now and reevaluating with bug 1936426
Comment 26•2 months ago
|
||
bugherder |
Comment 27•2 months ago
|
||
Since nightly and release are affected, beta will likely be affected too.
For more information, please visit BugBot documentation.
Reporter | ||
Comment 28•2 months ago
|
||
Verified as fixed in our latest Nightly 135.0a1 (2024-12-11).
Updated•2 months ago
|
Updated•9 days ago
|
Description
•