[browser] add support for keyboard shortcuts

Bug #1287361 reported by Bill Filler
116
This bug affects 18 people
Affects Status Importance Assigned to Milestone
Ubuntu UX
Fix Released
Medium
James Mulholland
webbrowser-app (Ubuntu)
Fix Released
High
Ugo Riboni

Bug Description

need to add commands similar to the other apps so it works well on the desktop:

- fullscreen mode and toggle (via function key)
- esc key to toggle out of fullscreen
- ctrl-l to display the url bar and select all text in it
- keyboard shortcuts for navigation (back, forward) - check what chrome/chromium/firefox does here
- keyboard shortcut for reload a page
- keyboard shortcut to display history
- others???

Related branches

Revision history for this message
Bill Filler (bfiller) wrote :

some of these may apply to both webbrowser-app and webapp-container

tags: added: desktop-touch
Changed in webbrowser-app:
assignee: nobody → Arthur Mello (artmello)
importance: Undecided → High
Revision history for this message
Adnane Belmadiaf (daker) wrote :

Here are some keyboard shortcuts that can be implemented :
- Ctrl+t : Open tab
- Ctrl+w : Close tab
- Ctrl+tab : Navigate between tabs
- F6 : Open the toolbar + focus the adressebar

Bill Filler (bfiller)
Changed in webbrowser-app:
status: New → Confirmed
Changed in webbrowser-app (Ubuntu):
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Arthur Mello (artmello)
milestone: none → ubuntu-14.03
Changed in webbrowser-app:
milestone: none → 14.03
Bill Filler (bfiller)
Changed in webbrowser-app:
importance: High → Medium
Changed in webbrowser-app (Ubuntu):
importance: High → Medium
Revision history for this message
Mark Rowan (mark-tamias) wrote :

When editing in the GMail webapp, it's not possible to select text with the mouse, or to alter the current selection with Shift+Up (all other arrow key combinations work).

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

Ctrl + '+' and Ctrl + '- ' let users zoom in & out. Ctrl + '0' resets the zoom value to default

tags: added: webapps-hotlist
Arthur Mello (artmello)
Changed in webbrowser-app:
status: Confirmed → In Progress
Changed in webbrowser-app (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Arthur Mello (artmello) wrote :

The following keyboard shortcuts have been added tho this branch:
* Ctrl + L: Display the url bar
* Ctrl + T: Open new Tab
* Ctrl + W: Close current Tab
* Ctrl + Tab: Navigate between tabs
* Ctrl + R: Reload current Tab
* Ctrl + D: Bookmark current Tab
* Ctrl + H: Show History
* Shift + Backspace: Goes to the next page in history
* Alt + Left Arrow: Goes to the previous page in history
* Alt + Right Arrow: Goes to the next page in history
* F6: Display the url bar
* F11: Toggle window fullscreen
* Esc: Return from fullscreen

Those commands will only work if the focus is not at the WebView, will only work if focus is on the URL bar or on the Window itself. There is a bug on Oxide since it is not forwarding Keyboard events that are not being handled: https://bugs.launchpad.net/oxide/+bug/1313727

The commands for Zoom In and Zoom Out are not implemented yet because Oxide does not support this functionality yet.

Revision history for this message
Mateusz Stachowski (stachowski-mateusz) wrote :

You should add F5 for reloading current Tab it is used alongside Ctrl + R in all browsers and even file managers like Nautilus.

Revision history for this message
Thibaut Brandscheid (k1au3-is-37) wrote :

CTRL + SHIFT + T: reopen previously closed tab
ALT + 1-8: show first [tab number]
ALT + 9: show last tab

Plus one suggestion, for a new, unusual shortcut:
ALT + Enter: open settings

Revision history for this message
Bartosz Kosiorek (gang65) wrote :

It seems that some work was done. Maybe we should push it to trunk?

Revision history for this message
Olivier Tilloy (osomon) wrote :

That branch (that you submitted for review) was not ready. It was worked on a while ago but left unfinished due to changing priorities, and not updated since then. I’m afraid this will need more work before it’s ready to merge.

Revision history for this message
Bartosz Kosiorek (gang65) wrote :

@Oliver.

Thanks for response. Can I continue work on that part (keyboard shortcut support)?

Revision history for this message
Olivier Tilloy (osomon) wrote :

Of course Bartosz, if you can get it into a usable state that will be very welcome!

Changed in webbrowser-app (Ubuntu):
assignee: Arthur Mello (artmello) → Bartosz Kosiorek (gang65)
Changed in webbrowser-app:
assignee: Arthur Mello (artmello) → Bartosz Kosiorek (gang65)
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

I have added most needed shortcuts:
* Ctrl + L: Select the content in the address bar
* Ctrl + T: Open new Tab
* Ctrl + W: Close current Tab
* Ctrl + Tab: Navigate between tabs
* Ctrl + R: Reload current Tab
* Ctrl + D: Bookmark current Tab
* Ctrl + H: Show History
* Shift + Backspace: Goes to the next page in history
* Backspace: Goes to the previous page in history
* Alt + Left Arrow: Goes to the previous page in history
* Alt + Right Arrow: Goes to the next page in history
* Alt + D: Select the content in the address bar

Unfortunately it is impossible to implement switching to the next tab, without reimplementation tabs-model.cpp.
I think we could consider to use following private fields:
   QList<QObject*> m_tabs; //store all tabs data
   int current_tab_index; //store current tab index.

What do you think about such implementation?
It will simplify implementation and allow easily switching between tabs.

Revision history for this message
Bartosz Kosiorek (gang65) wrote :

The order of the tabs are changing during switching to next tab.
For example:

If you have tabs: "1 2 3 4"
and swittch to the next one ("2"), we will receive: "2 1 3 4"
and swittch to the next time , we will receive: "1 2 3 4"

I would like to ask Ubuntu UX, if it will be possible to not change order of tabs during switching?

In future we would like to support convergence, and it will be good to not rewrite webbrowser-app application.
Please let me know what do you think about that.

Changed in ubuntu-ux:
assignee: nobody → Giorgio Venturi (giorgio-venturi)
Revision history for this message
Giorgio Venturi (giorgio-venturi-deactivatedaccount) wrote :
Changed in ubuntu-ux:
status: New → In Progress
importance: Undecided → Medium
summary: - add support for keyboard shortcuts
+ [OSK] add support for keyboard shortcuts
Revision history for this message
Olivier Tilloy (osomon) wrote : Re: [OSK] add support for keyboard shortcuts

Giorgio, what’s the rationale for the [OSK] marker in the title? This is about adding physical keyboard shortcuts (e.g. Ctrl+T, Alt+Backspace, …), not sure how this relates to the on-screen keyboard on touch devices.

Revision history for this message
Giorgio Venturi (giorgio-venturi-deactivatedaccount) wrote : Re: [Bug 1287361] Re: [OSK] add support for keyboard shortcuts

Sorry I got confused... I must have done something like 30 bugs today

> On 16 Mar 2015, at 19:21, Olivier Tilloy <email address hidden> wrote:
>
> Giorgio, what’s the rationale for the [OSK] marker in the title? This is
> about adding physical keyboard shortcuts (e.g. Ctrl+T, Alt+Backspace,
> …), not sure how this relates to the on-screen keyboard on touch
> devices.
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1287361
>
> Title:
> [OSK] add support for keyboard shortcuts
>
> Status in Ubuntu UX bugs:
> In Progress
> Status in Web Browser App:
> In Progress
> Status in webbrowser-app package in Ubuntu:
> In Progress
>
> Bug description:
> need to add commands similar to the other apps so it works well on the
> desktop:
>
> - fullscreen mode and toggle (via function key)
> - esc key to toggle out of fullscreen
> - ctrl-l to display the url bar and select all text in it
> - keyboard shortcuts for navigation (back, forward) - check what chrome/chromium/firefox does here
> - keyboard shortcut for reload a page
> - keyboard shortcut to display history
> - others???
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu-ux/+bug/1287361/+subscriptions

Olivier Tilloy (osomon)
summary: - [OSK] add support for keyboard shortcuts
+ add support for keyboard shortcuts
Changed in ubuntu-ux:
status: In Progress → Triaged
assignee: Giorgio Venturi (giorgio-venturi) → Rae Shambrook (raecontreras)
summary: - add support for keyboard shortcuts
+ [browser] add support for keyboard shortcuts
Changed in ubuntu-ux:
assignee: Rae Shambrook (raecontreras) → James Mulholland (jamesjosephmulholland)
Olivier Tilloy (osomon)
Changed in webbrowser-app:
assignee: Bartosz Kosiorek (gang65) → Ugo Riboni (uriboni)
Changed in webbrowser-app (Ubuntu):
assignee: Bartosz Kosiorek (gang65) → nobody
Olivier Tilloy (osomon)
Changed in webbrowser-app (Ubuntu):
assignee: nobody → Ugo Riboni (uriboni)
importance: Medium → High
milestone: ubuntu-14.03 → none
Changed in webbrowser-app:
milestone: 14.03 → none
assignee: Ugo Riboni (uriboni) → nobody
status: In Progress → Invalid
Olivier Tilloy (osomon)
no longer affects: webbrowser-app
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package webbrowser-app - 0.23+15.10.20150618-0ubuntu1

---------------
webbrowser-app (0.23+15.10.20150618-0ubuntu1) wily; urgency=medium

  [ CI Train Bot ]
  * New rebuild forced.

  [ Michael Terry ]
  * Fix spelling of OK in private browsing dialog.

  [ Olivier Tilloy ]
  * Actually push URLs to the clipboard. For some reason setting the
    "text/url-list" mime type doesn’t seem to work (or other
    applications do not implement pasting this kind of data), but
    "text/plain" works well enough for this purpose. (LP: #1463435)
  * Do not honour fullscreen requests silently at the Ubuntu WebView
    level. Instead delegate that behaviour to the webview implementation
    used by the browser and the webapp container. (LP: #1464249)
  * Toggle application-level fullscreen when pressing F11. (LP:
    #1464333)

  [ Ugo Riboni ]
  * Make the browser chrome usable on desktop by implementing common
    keyboard shortcuts and behaviors that users normally expect in such
    an app (LP: #1287361)

 -- CI Train Bot <email address hidden> Thu, 18 Jun 2015 08:12:37 +0000

Changed in webbrowser-app (Ubuntu):
status: In Progress → Fix Released
Changed in ubuntu-ux:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.