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 692773 - Keyboard pops up when enabled programatically
Keyboard pops up when enabled programatically
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: keyboard
3.7.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
touch
Depends on:
Blocks: 692771
 
 
Reported: 2013-01-29 09:39 UTC by Bastien Nocera
Modified: 2013-02-15 17:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
keyboard: Don't show the keyboard when enabled (1.37 KB, patch)
2013-01-31 22:41 UTC, Bastien Nocera
needs-work Details | Review
keyboard: Don't show the keyboard when enabled (2.28 KB, patch)
2013-02-15 17:14 UTC, Bastien Nocera
committed Details | Review

Description Bastien Nocera 2013-01-29 09:39:49 UTC
It should only show up when enabled through the a11y status icon, the universal access panel, or the keyboard shortcut used to toggle it.

When gnome-shell stops popping up the keyboard on its own when the setting changes, we can make all the above use the "Show" method on org.gnome.Caribou.Keyboard.
Comment 1 Allan Day 2013-01-29 10:20:28 UTC
(In reply to comment #0)
> It should only show up when enabled through the a11y status icon, the universal
> access panel, ...

Should it? Why should it pop up if there's potentially nothing to type into?
Comment 2 Bastien Nocera 2013-01-29 10:22:40 UTC
Because there are some cases it cannot detect (non-GTK+ apps for starters), and that it shows that the setting took effect.
Or not. Just not popping it up would certainly make things easier for me :)
Comment 3 Bastien Nocera 2013-01-31 22:41:27 UTC
Created attachment 234940 [details] [review]
keyboard: Don't show the keyboard when enabled
Comment 4 Rui Matos 2013-02-02 21:30:56 UTC
(In reply to comment #0)
> It should only show up when enabled through the a11y status icon, the universal
> access panel, or the keyboard shortcut used to toggle it.
> 
> When gnome-shell stops popping up the keyboard on its own when the setting
> changes, we can make all the above use the "Show" method on
> org.gnome.Caribou.Keyboard.

We need to add Enable/Disable methods to the Caribou DBus interface then because flipping the setting and calling Show() would be racy since Show() needs to check if the setting is enabled to actually show the OSK.

(In reply to comment #2)
> Because there are some cases it cannot detect (non-GTK+ apps for starters), and
> that it shows that the setting took effect.
> Or not. Just not popping it up would certainly make things easier for me :)

What are you trying to do?
Comment 5 Bastien Nocera 2013-02-02 23:11:30 UTC
See the bugs this blocks, enabling OSK automatically when touch is used, disabling it when not.
Comment 6 Rui Matos 2013-02-15 17:03:54 UTC
Review of attachment 234940 [details] [review]:

::: js/ui/keyboard.js
@@ -188,3 @@
-            if (showKeyboard)
-                this._timestamp = global.display.get_current_time_roundtrip() + 1;
-            this._setupKeyboard(showKeyboard);

we still need to call _setupKeyboard(). I propose that we keep calling it but just remove its parameter.
Comment 7 Bastien Nocera 2013-02-15 17:14:24 UTC
Created attachment 236274 [details] [review]
keyboard: Don't show the keyboard when enabled
Comment 8 Rui Matos 2013-02-15 17:19:09 UTC
Review of attachment 236274 [details] [review]:

Looks good.
Comment 9 Bastien Nocera 2013-02-15 17:24:22 UTC
Attachment 236274 [details] pushed as 30e4dce - keyboard: Don't show the keyboard when enabled