Keyboard navigation and message interaction for Grok chat
当前为
This userscript enhances the accessibility and usability of the Grok chat interface by adding keyboard navigation and interaction capabilities. It allows users to easily select, edit, copy, and regenerate chat messages using intuitive keyboard shortcuts, making the chat more accessible and efficient.
Keyboard Navigation:
j (down), k (up), Home, and End keys. Ctrl+I to focus the main chat input field.Message Interaction:
e), copy (c), or regenerate (r) selected messages with keyboard shortcuts.Ctrl+Home and Ctrl+End.End and/or Home, respectively.Escape Key Functionality:
Escape to deselect messages, defocus input, cancel editing, or toggle the aside panel for messages with code.Mouse Interaction:
Scroll Handling:
Ctrl+S.j or ArrowDown: Select the next message.k or ArrowUp: Select the previous message.Home: Jump to the first message.End: Jump to the last message (scrolls to bottom with offset).e: Edit the message.c: Copy the message.r: Regenerate the message.Ctrl+Home: Move cursor to start.Ctrl+End: Move cursor to end.Escape: Cancel editing.Escape: Deselect the current message, cancel editing, or toggle the aside panel.Released under the MIT License. See script header for details.
Version 1.0: