bugGNU TeXmacs - Bugs: bug #30603, Shift+CapsLock mode works wrong

 
 

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

bug #30603: Shift+CapsLock mode works wrong

Submitted by:  Victor Porton <porton>
Submitted on:  Fri 30 Jul 2010 03:53:29 PM UTC  
 
Category: EditorPriority: 7 - High
Item Group: ErrorStatus: Fixed
Privacy: PublicAssigned to: Joris van der Hoeven <vdhoeven>
Originator Name: Open/Closed: Closed
Release: 1.0.7.4Release: None
Fixed Release: NoneFixed Release: 1.0.7.9
Keywords: 

Wed 08 Dec 2010 04:07:42 PM UTC, comment #1:

The problem is not present in the Qt port and the following patch solves the problem on X11.

Index: src/Plugins/X11/x_loop.cpp
===================================================================
--- src/Plugins/X11/x_loop.cpp (revision 3947)
+++ src/Plugins/X11/x_loop.cpp (working copy)
@@ -86,7 +86,7 @@
if (contains_unicode_char (r)) return r;
}
else XLookupString (ev, NULL, 0, &key, NULL);
- string s= ((ev->state&3)? upper_key [key]: lower_key [key]);
+ string s= ((ev->state&1)? upper_key [key]: lower_key [key]);
if ((N(s)>=2) && (s[0]=='K') && (s[1]=='-')) s= s (2, N(s));

/* other keyboard modifiers */

Joris could you confirm that the patch does not break anything?

Massimiliano Gubinelli <mgubi>
Project Administrator
Fri 30 Jul 2010 03:53:29 PM UTC, original submission:

When I press Shift+CapsLock on X Windows under Linux (that is when I turn on entering capital letters without pressing Shift) TeXmacs starts to interpret every key in such a way as if Shift would be pressed (for example Left and Right keys select). This is wrong, for example pressing Left and Right without shift should not select, even in Shift+CapsLock mode.

Victor Porton <porton>

 

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 vdhoeven (Updated the item)
  • -unavailable- added by mgubi (Posted a comment)
  • -unavailable- added by porton (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 08 Dec 2010 05:11:58 PM UTCvdhoevenStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
      Fixed Release=>1.0.7.9
    Wed 08 Dec 2010 04:07:42 PM UTCmgubiPriority5 - Normal=>7 - High
      StatusNone=>Ready For Test
      Assigned toNone=>vdhoeven

    Back to the top


    Powered by Savane 3.1-cleanup1