-
-
Notifications
You must be signed in to change notification settings - Fork 254
Add 'Join Current Meeting' keyboard shortcut #897
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: master
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -127,6 +127,10 @@ final class StatusBarItemController { | |||||
| private func setupKeyboardShortcuts() { | ||||||
| KeyboardShortcuts.onKeyUp(for: .createMeetingShortcut, action: createMeeting) | ||||||
|
|
||||||
| KeyboardShortcuts.onKeyUp(for: .joinCurrentEventShortcut) { | ||||||
| Task { @MainActor in self.joinCurrentMeeting() } | ||||||
| } | ||||||
|
|
||||||
| KeyboardShortcuts.onKeyUp(for: .joinEventShortcut) { | ||||||
| Task { @MainActor in self.joinNextMeeting() } | ||||||
| } | ||||||
|
|
@@ -400,6 +404,18 @@ final class StatusBarItemController { | |||||
| createMeeting() | ||||||
| } | ||||||
|
|
||||||
| @objc | ||||||
| /// Joins the meeting link for the event currently in progress. | ||||||
| /// | ||||||
| /// If there is no active event, a user-facing notification is shown. | ||||||
| func joinCurrentMeeting() { | ||||||
| if let currentEvent = events.currentEvent() { | ||||||
| currentEvent.openMeeting() | ||||||
| } else { | ||||||
| sendNotification("status_bar_section_join_current_meeting".loco(), "next_meeting_empty_message".loco()) | ||||||
|
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. Use current-meeting-specific notification copy here. The “no active event” branch uses 💡 Suggested adjustment- sendNotification("status_bar_section_join_current_meeting".loco(), "next_meeting_empty_message".loco())
+ sendNotification("current_meeting_empty_title".loco(), "current_meeting_empty_message".loco())📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| } | ||||||
| } | ||||||
|
|
||||||
| @objc | ||||||
| func joinNextMeeting() { | ||||||
| if let nextEvent = events.nextEvent() { | ||||||
|
|
||||||
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.
Fix
joinEventShortcutdoc to match actual behavior.The comment says “nearest meeting (current or next)”, but current wiring in
MeetingBar/UI/StatusBar/StatusBarItemController.swift(setupKeyboardShortcuts) maps.joinEventShortcuttojoinNextMeeting(). Update the doc to avoid API confusion.✏️ Suggested doc fix
🤖 Prompt for AI Agents