Zim

<space> toggles side pane on ubuntu

Bug #620315 reported by chumba
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Fix Released
High
Unassigned

Bug Description

Zim version 0.48
Running on Ubuntu 10.04.1

Problem is that <space> key switches side pane instead of inserting space char. <shift>-<space> works well. Enabling <ctrl>-<space> check box in preferences also switches side pane as expected but single <space> still does not work.
One special thing in my case is that I have <alt>-<space> combination configured to switch between keyboard layouts. But that should not affect standalone <space> functionality.

Revision history for this message
chumba (splushkin) wrote :

This problem also existed with officially supported zim 0.43-2 in Ubuntu lucid.

Revision history for this message
chumba (splushkin) wrote :

Disabling <alt>-<space> in keyboard layout switching clear the problem. Enabling it back makes it happen again.

Revision history for this message
chumba (splushkin) wrote :

Commented out "group.connect_group( # <Alt><Space>..." (gui/__init__.py:line 1609) mapping assignment and it started to work.

Apparently gtk.gdk.MOD1_MASK does not work or gives false positive even when Alt is not actually pressed in the case when <alt>-<space> is configured for keyboard layout switching.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

What component is used to define the keyboard switching shortcut? Might be helpful to also file a bug report for that component. Apparently it somehow sets up the gtk environment to always see an Alt.

Only thing we could do about this is to make an option to completely disable this key binding, but in an ideal world that should not be needed.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Waiting for further information - set to "incomplete".

Changed in zim:
status: New → Incomplete
Revision history for this message
Jeroen Maris (jealma) wrote :

I just installed Zim 0.49 on Archlinux on my laptop and my space key didn't work as expected (it toggled the tree view instead of inserting a space). Then I tried installing Zim on my workstation, also Archlinux, and the same thing occurred. After reading through the bug list I encountered this bug report, and indeed, I have the alt_space combination configured in Xorg to switch between keyboard layouts. The bug thus is still present in the latest version of Zim. I use Archlinux X86_64 with kernel 2.6.36 and X.Org X Server 1.9.2. A fix would be greatly appreciated as I use Greek and Hebrew keyboard layouts for my study besides the US layout.

Changed in zim:
status: Incomplete → Confirmed
importance: Undecided → High
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Fix committed in rev377

Removed the Alt-Space keybinding to avoid any more of these issues. For users that still want it there is a hidden preference to enable it. The Ctrl-Space keybinding will be the preferred keybinding and can be enabled from the preferences dialog.

Changed in zim:
status: Confirmed → Fix Committed
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Released in zim 0.51

Changed in zim:
status: Fix Committed → 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.