Skip to content

Bug 1167970 - Bluetooth Keyboard Shortcuts For Common Actions: New tab#780

Closed
kar1m wants to merge 1 commit intomozilla-mobile:masterfrom
kar1m:karim/Bug1167970-KeyboardShortcutsForCommonActions
Closed

Bug 1167970 - Bluetooth Keyboard Shortcuts For Common Actions: New tab#780
kar1m wants to merge 1 commit intomozilla-mobile:masterfrom
kar1m:karim/Bug1167970-KeyboardShortcutsForCommonActions

Conversation

@kar1m
Copy link
Copy Markdown
Contributor

@kar1m kar1m commented Jul 22, 2015

This is the groundwork to handle Bluetooth Keyboard shortcuts. I only implemented the New tab shortcut on purpose, to first validate my approach, then implement the rest of the shortcuts.

Basically, any UIResponder (views and view controllers) can implement a handler for a keyboard event. To do that, it should conform to the BluetoothKeyboardDelegate protocol, declare itself as able to become firstResponder and implement the desired delegate method(s).
For each keyboard event that we support, only the delegate method of the firstResponder BluetoothKeyboardDelegate will be called (if there's any).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: align *s on left

@thebnich
Copy link
Copy Markdown
Contributor

Closing since this will likely need to be rewritten.

@thebnich thebnich closed this Jan 14, 2016
isabelrios pushed a commit to isabelrios/firefox-ios that referenced this pull request Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants