bugGNU TeXmacs - Bugs: bug #40752, Keyboard shortcuts in Qt textual...


You are not allowed to post comments on this tracker with your current authentification level.

bug #40752: Keyboard shortcuts in Qt textual input widgets

Submitted by:  Joris van der Hoeven <vdhoeven>
Submitted on:  Fri Nov 29 19:57:15 2013  
Category: Qt portPriority: 5 - Normal
Item Group: ErrorStatus: Confirmed
Privacy: PublicAssigned to: Miguel de Benito <mdbenito>
Originator Name: Open/Closed: Open
Release: Release: None
Fixed Release: NoneFixed Release: 

Tue Dec 3 17:54:39 2013, comment #4:

I don't think that we should worry too much about customized key bindings for this issue. Instead, you might provide a hook for letting the user override the default key bindings for the QTMLineEdit widget.

Joris van der Hoeven <vdhoeven>
Project Administrator
Tue Dec 3 16:40:11 2013, comment #3:

This is not enough because as I said, the user may have customized her key bindings. As a better version of my first proposal, when building the widget, we can read the current kbd-maps assigned to the scheme commands which in a texmacs buffer perform the desired actions. I will try to implement this.

As to the use of TeXmacs input widgets, yes. They are inadequate as-is.

Miguel de Benito <mdbenito>
Project MemberIn charge of this item.
Tue Dec 3 13:53:17 2013, comment #2:

Yes, I think that the shortcuts should be hardcoded. The right solution is indeed to implement a specific QTMLineEdit widget, which looks up the main look and feel in the preferences (now implemented in C++) and hardcodes the most common shortcuts (approximately those implemented in the case of Widkit) for that look and feel in the C++ code.

We should avoid to use TeXmacs input widgets for line edits; that seems overkill to me and it would impact the widget layout in a major way.

Joris van der Hoeven <vdhoeven>
Project Administrator
Tue Dec 3 11:55:28 2013, comment #1:

I don't see how we could implement this other than with a hack, as is done in WidKit's input_widget. There, shorcuts for begin, end, left, right, etc. are hardcoded:

I think this is not a proper solution, since the user may have customized his "standard" shortcuts. We may:

  • Choose an appropriate subset of the shortcuts and using some special syntax (maybe simply the standard user preferences) let the user customize them. Maybe do this in generic-kbd.scm.
  • Implement a new QTMLineEdit with a TeXmacs buffer (or rather a simplified version thereof, as light as possible). This is probably needed if we want a proper search/replace dialog.
Miguel de Benito <mdbenito>
Project MemberIn charge of this item.
Fri Nov 29 19:57:15 2013, original submission:

Some of the standard keyboard shortcuts do not apply inside Qt's textual input widgets. We should ensure that standard shortcuts for cursor movement, forward/backward delete, and copy/cut/paste work in the same way as in the main TeXmacs widget.

Joris van der Hoeven <vdhoeven>
Project Administrator


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by mdbenito (Posted a comment)
  • -unavailable- added by vdhoeven (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Dec 3 13:53:17 2013vdhoevenPriority4 - Bit lower=>5 - Normal
      StatusNeed Info=>Confirmed
    Tue Dec 3 11:55:28 2013mdbenitoPriority5 - Normal=>4 - Bit lower
      StatusConfirmed=>Need Info

    Back to the top

    Powered by Savane 3.1-cleanup1