Re: Bug#351539: zim: backspace key send delete

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Bug#351539: zim: backspace key send delete

Yves-Alexis Perez
(for [hidden email] readers, Julien Blache and me
triggered a bug in Zim (also present in Dia and which was present in
Nautilus 2.8 iirc) where the delete key was binded as a gtk accelerator
to the Delete action. Problem is that gtk doesnt handles this correctly
with some keybindings.

In our case, Shift+Backspace is binded to Delete (mac laptop users don't
have a delete key). But in that case, the gtk shift handling causes the
Backspace key to be treated as if it was a Shift+Backspace.

On Sun, 2006-06-11 at 12:28 +0200, Julien BLACHE wrote:

> > It might not necessarily be a bug, probably more something of an
> > undocumented feature. Looking at other gtk programs I notice that
>
> This is a bug in the way the accel code handles the modifiers, and has
> been brought up several times already as the original submitter found
> out :/
>
> They're basically trying to make it so that ctrl-z and ctrl-Z both
> trigger a ctrl-z accel, etc. And obviously, they've got it wrong on
> occasion...

Yes, this is why, when I removed the Shift+Backspace binding to Delete
in my keymap it restarted to work. And the same occurs in Dia and I
guess it was the problem in nautilus too, but I didn't find a changelog
entry saying they had removed the Delete accelerator.

This only shows on powerpc laptops because we are the only one (i guess)
to have delete binded on Shift+Backspace.
>
> > almost non have an accelerator (keybinding) for the "Delete" menu
> > entry. The default 'gtk-delete' stock item does not add a
> accelerator
> > to the menu.
>
> I'm told those keys (delete, backspace, some others) are special-cased
> in the accel code, though it seems the special-casing is broken :)

So maybe opening a bug on gtk would be an option (CC:ing
[hidden email] )
>
> > Could you instead of removing the menu entre just change the label
> and
> > the accelerator to 'undef' (in PageView.pm) ? This should remove the
> > keybinding. If this works I'll commit it for the next release.
>
> It works as expected removing the label and the accel.
>
> Now zim will be usable again as my scratchpad/todolist :)

Removing the accel (pressing backspace when the "Delete" menu entry is
selected, while having editable menu accelerators) work. But it'd be
nice if those settings were saved somewhere :)

Regards,
--
Yves-Alexis Perez


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Bug#351539: zim: backspace key send delete

Michel Dänzer-3
On Sun, 2006-06-11 at 12:58 +0200, Yves-Alexis Perez wrote:
>
> In our case, Shift+Backspace is binded to Delete (mac laptop users don't
> have a delete key).

BTW, at least with older Mac laptops, fn+Backspace generates a 'real'
Delete.


--
Earthling Michel Dänzer           |          http://tungstengraphics.com
Libre software enthusiast         |          Debian, X and DRI developer

Reply | Threaded
Open this post in threaded view
|

Re: Bug#351539: zim: backspace key send delete

Julien BLACHE
Michel Dänzer <[hidden email]> wrote:

>> In our case, Shift+Backspace is binded to Delete (mac laptop users don't
>> have a delete key).
>
> BTW, at least with older Mac laptops, fn+Backspace generates a 'real'
> Delete.

Correct. The shift+backspace binding appeared in the newer xkb-data
together with X.Org modular, I believe, probably for newer PBs where
the Fn key is no longer handled by the hardware.

JB.

--
 Julien BLACHE <[hidden email]>  |  Debian, because code matters more
 Debian & GNU/Linux Developer        |       <http://www.debian.org>
 Public key available on <http://www.jblache.org> - KeyID: F5D6 5169
 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169


--
To UNSUBSCRIBE, email to [hidden email]
with a subject of "unsubscribe". Trouble? Contact [hidden email]