After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 613082 - Allow a user to start a new instance of a application using only the keyboard
Allow a user to start a new instance of a application using only the keyboard
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 647212 648910 652608 654424 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-03-16 22:01 UTC by Nuno Araujo (IRC: russo79)
Modified: 2011-07-16 20:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Ctrl-Enter inside search opens new window (3.23 KB, patch)
2011-03-27 16:16 UTC, Ron
needs-work Details | Review
viewSelector: Bind <Ctrl>+<Return> for open new window (2.56 KB, patch)
2011-07-16 18:03 UTC, Maxim Ermilov
reviewed Details | Review
viewSelector: Bind <Ctrl>+<Return> for open new window (2.64 KB, patch)
2011-07-16 19:31 UTC, Maxim Ermilov
committed Details | Review

Description Nuno Araujo (IRC: russo79) 2010-03-16 22:01:00 UTC
Current behavior :
- Press the Super key
- Type the name of an application already running in the find "box"
- Need to Ctrl-Click on the application icon to launch a new instance

Desired behavior :
- Press the Super key
- Type the name of an application already running in the find "box"
- Press Ctrl-Enter and the new instance of the application is launched.

It seems to me rather logic since we can already launch a new instance of an application by Ctrl-Clicking on the icon, so Ctrl-Enter seems natural
Comment 1 Teemu 2010-06-02 16:24:39 UTC
I concur. The more I can do with only keyboard, the happier I am.
Comment 2 Ron 2011-03-27 16:16:23 UTC
Created attachment 184368 [details] [review]
Ctrl-Enter inside search opens new window
Comment 3 Michael Knepher 2011-04-05 20:16:57 UTC
In addition to a key-combo to launch a new window, it would also be useful to have one to launch an app in a new workspace, duplicating the middle-click behavior.
Comment 4 Rui Matos 2011-04-08 23:01:39 UTC
*** Bug 647212 has been marked as a duplicate of this bug. ***
Comment 5 Lapo Calamandrei 2011-04-15 11:47:01 UTC
Makes a lot of sense to have this to me, it follows the dash logic and add a quick way to launch a new window with just the keyboard.
Comment 6 Maxim Ermilov 2011-06-15 22:19:13 UTC
*** Bug 652608 has been marked as a duplicate of this bug. ***
Comment 7 Maxim Ermilov 2011-06-15 22:29:20 UTC
Review of attachment 184368 [details] [review]:

::: js/ui/viewSelector.js
@@ +145,2 @@
         this._text.connect('text-changed', Lang.bind(this, this._onTextChanged));
+        this._text.connect('activate', Lang.bind(this, this._onActivate));

It is better to manually handle this in _onKeyPress.

@@ +278,3 @@
+
+            if (!this.active)
+                return true;

It should return TRUE only if the event has been handled.
Comment 8 Maxim Ermilov 2011-07-11 22:19:31 UTC
*** Bug 654424 has been marked as a duplicate of this bug. ***
Comment 9 Jasper St. Pierre (not reading bugmail) 2011-07-13 19:49:32 UTC
Ron, are you going to continue working on this?
Comment 10 Ron 2011-07-13 22:25:51 UTC
I'm sorry that I didn't reported back earlier after the review, but I had trouble building GNOME Shell and forgot about it. Because I still have trouble building it, I would suggest to take Maxim Ermilovs patch from Bug 652608. After the review my patch would be basically the same anyway. The only notable difference is that his patch doesn't check the app.state inside appDisplay.js.
Comment 11 Allan E. Registos 2011-07-14 01:22:28 UTC
Quote: "Current behavior :
- Press the Super key
- Type the name of an application already running in the find "box"
- Need to Ctrl-Click on the application icon to launch a new instance

Desired behavior :
- Press the Super key
- Type the name of an application already running in the find "box"
- Press Ctrl-Enter and the new instance of the application is launched. "
End Quoute:

Just a note, the desired behavior is already a feature in Windows 7. Superkey+Type+When Satisfied with the result,just press enter.
This is a nice feature.
Comment 12 Giovanni Campagna 2011-07-14 11:33:33 UTC
*** Bug 648910 has been marked as a duplicate of this bug. ***
Comment 13 Maxim Ermilov 2011-07-16 18:03:18 UTC
Created attachment 192093 [details] [review]
viewSelector: Bind <Ctrl>+<Return> for open new window
Comment 14 Jasper St. Pierre (not reading bugmail) 2011-07-16 18:57:59 UTC
Review of attachment 192093 [details] [review]:

::: js/ui/viewSelector.js
@@ +143,3 @@
         this._text.connect('text-changed', Lang.bind(this, this._onTextChanged));
+        this._text.connect('key-press-event', Lang.bind(this, function (o, e) {
+            // ClutterText::activate signal is not emitted on <Ctrl>+<Return>

This comment doesn't really make sense without the context of this bug.

Try:

  // We can't connect to 'activate' here because search providers
  // might want to do something with the modifiers in activateSelected.
Comment 15 Maxim Ermilov 2011-07-16 19:31:41 UTC
Created attachment 192097 [details] [review]
viewSelector: Bind <Ctrl>+<Return> for open new window
Comment 16 Jasper St. Pierre (not reading bugmail) 2011-07-16 19:54:29 UTC
Review of attachment 192097 [details] [review]:

LGTM.