Bug#824741: keysyms associated with F1 and Shift-F8 are ignored in text input fields

2016-10-14 Thread Vincent Lefevre
On 2016-10-14 18:36:48 +0200, Graham Inggs wrote:
> On 14 October 2016 at 18:22, Vincent Lefevre  wrote:
> > But pethaps there's something similar in the default bindings.
> 
> If there are, what do you want to happen here?

Well, the default bindings should not assume that the physical F1 key
necessarily corresponds to the F1 keysym, and so on.

> Are you able to unbind the keys you want with a custom ~/.motifbind file?

Not tried, but to avoid the problem, I'm currently overriding the
Motif bindings via the defaultVirtualBindings X resource:

*defaultVirtualBindings: \
osfCancel:  Escape\n\
osfLeft:Left\n\
osfUp:  Up\n\
osfRight:   Right\n\
osfDown:Down\n\
osfEndLine: End\n\
osfBeginLine:   Home\n\
osfPageUp:  Prior\n\
osfPageDown:Next\n\
osfBackSpace:   BackSpace\n\
osfDelete:  Delete\n\
osfInsert:  Insert\n\
osfMenu:Menu\n\
osfMenuBar: ShiftMenu

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#824741: keysyms associated with F1 and Shift-F8 are ignored in text input fields

2016-10-14 Thread Graham Inggs
On 14 October 2016 at 18:22, Vincent Lefevre  wrote:
> But pethaps there's something similar in the default bindings.

If there are, what do you want to happen here?

Are you able to unbind the keys you want with a custom ~/.motifbind file?



Bug#824741: keysyms associated with F1 and Shift-F8 are ignored in text input fields

2016-10-14 Thread Vincent Lefevre
Hi,

On 2016-10-14 18:14:55 +0200, Graham Inggs wrote:
> Hi Vincent
> 
> On 19 May 2016 at 14:34, Vincent Lefevre  wrote:
> > I reassign this bug to libxm4 since the bug probably occurs at the
> > Motif level. I notice that libmotif-common provides bindings files
> > (/usr/share/X11/bindings directory), where one can see settings for
> > F1 and Shift-F8, but also F10 and Shift-F10. However:
> >   * I don't have any problem with F10 and Shift-F10.
> >   * No such bindings files are read when running xpdf, as shown
> > by strace -f.
> 
> Did you see bindings/README from the source package [1] ?
> 
> These files are not read, but are examples which can be copied to
> ~/.motifbind and modified by the user.

But pethaps there's something similar in the default bindings.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#824741: keysyms associated with F1 and Shift-F8 are ignored in text input fields

2016-10-14 Thread Graham Inggs
Hi Vincent

On 19 May 2016 at 14:34, Vincent Lefevre  wrote:
> I reassign this bug to libxm4 since the bug probably occurs at the
> Motif level. I notice that libmotif-common provides bindings files
> (/usr/share/X11/bindings directory), where one can see settings for
> F1 and Shift-F8, but also F10 and Shift-F10. However:
>   * I don't have any problem with F10 and Shift-F10.
>   * No such bindings files are read when running xpdf, as shown
> by strace -f.

Did you see bindings/README from the source package [1] ?

These files are not read, but are examples which can be copied to
~/.motifbind and modified by the user.

Regards
Graham


[1] https://sources.debian.net/src/motif/2.3.4-11/bindings/README/



Bug#824741: keysyms associated with F1 and Shift-F8 are ignored in text input fields

2016-05-19 Thread Vincent Lefevre
On 2016-05-19 14:34:06 +0200, Vincent Lefevre wrote:
> I reassign this bug to libxm4 since the bug probably occurs at the
> Motif level. I notice that libmotif-common provides bindings files
> (/usr/share/X11/bindings directory), where one can see settings for
> F1 and Shift-F8, but also F10 and Shift-F10. However:
>   * I don't have any problem with F10 and Shift-F10.
>   * No such bindings files are read when running xpdf, as shown
> by strace -f.
> 
> I suspect that Motif may have default bindings for F1 and Shift-F8
> (the string "_MOTIF_DEFAULT_BINDINGS" appears in strace output).

$ xprop -root _MOTIF_DEFAULT_BINDINGS
_MOTIF_DEFAULT_BINDINGS(STRING) = 
"osfCancel:Escape,Cancel\nosfLeft:Left,KP_Left\nosfUp:Up,KP_Up\nosfRight:Right,KP_Right\nosfDown:Down,KP_Down\nosfEndLine:End,KP_End\nosfBeginLine:Home,Begin,KP_Home\nosfPageUp:Prior,KP_Prior\nosfPageDown:Next,KP_Next\nosfBackSpace:BackSpace\nosfDelete:Delete,KP_Delete\nosfInsert:Insert,KP_Insert\nosfAddMode:ShiftF8\nosfHelp:F1,Help\nosfMenu:ShiftF10,Menu\nosfMenuBar:F10,ShiftMenu\nosfSelect:Select\nosfActivate:KP_Enter,Execute\nosfClear:Clear\nosfUndo:Undo\nosfSwitchDirection:AltReturn,AltKP_Enter"

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#824741: keysyms associated with F1 and Shift-F8 are ignored in text input fields

2016-05-19 Thread Vincent Lefevre
Control: reassign -1 libxm4 2.3.4-10
Control: retitle -1 libxm4 (motif): keysyms associated with F1 and Shift-F8 are 
ignored in text input fields

On 2016-05-19 12:59:21 +0200, Vincent Lefevre wrote:
> In text input fields, such as in the Find and Save As dialog boxes,
> some keysyms are ignored. This is at least the case of:
>   * 0xe9 eacute (é)
>   * 0xdb Ucircumflex (Û)
> 
> However this is no such problem with: èêëâîôûàùïç ÉÈÊËÂÎÔÀÙÏÇ
> 
> Note: The problem is at the keysym level, as if I change my keyboard
> configuration to use other keysyms for the same physical keys, the
> characters appear as expected. Moreover, I can enter these characters
> é and Û with dead keys (dead_acute + e and dead_circumflex + U).

Well, after doing more tests, this is actually more complex.
The problem is that keysyms that correspond to F1 and Shift-F8
*when xpdf is started* do not work.

If I remap the keyboard with xkbcomp while xpdf is running, then the
new mapping is taken into account, except that the keysyms mentioned
above still do not work. For instance, if I swap the F1 & F2 settings
and the F7 & F8 settings while xpdf is running, then this is F2 and
Shift-F7 that do not work.

I reassign this bug to libxm4 since the bug probably occurs at the
Motif level. I notice that libmotif-common provides bindings files
(/usr/share/X11/bindings directory), where one can see settings for
F1 and Shift-F8, but also F10 and Shift-F10. However:
  * I don't have any problem with F10 and Shift-F10.
  * No such bindings files are read when running xpdf, as shown
by strace -f.

I suspect that Motif may have default bindings for F1 and Shift-F8
(the string "_MOTIF_DEFAULT_BINDINGS" appears in strace output).

It is wrong to override the user's keyboard mapping.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)