Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-2272

Direct input in Tk with XMODIFIERS can get scrambled (out of order) sometimes

    • None
    • Important
    • rhel-sst-display-window-management
    • 5
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      This is a continuation of the issue found https://bugzilla.redhat.com/show_bug.cgi?id=2170830#c52

      Sample program to reproduce the issue:

      #!/usr/bin/perl
      use strict;
      use warnings;
      use Tk;

      1. Create the main window
        my $window = MainWindow->new;
        $window->title("Input Dialog");
      1. Create a label to display the instructions
        $window->Label(text => "Enter your input:")>pack;
      1. Create an entry widget to input the text
        my $entry = $window->Entry->pack;
      1. Create a button to submit the input
        $window->Button(
        -text => "Submit",
        -command => sub { my $input = $entry->get; # Get the input from the entry widget print "Input: $input\n"; # Print the input to the console $window->destroy; # Close the window }

        )->pack;

      1. Run the Tk event loop
        MainLoop;

      Setting XMODIFIERS=@im=ibus works around the issue for now.

              rhn-engineering-ofourdan Olivier Fourdan
              rhn-support-sbarcomb Steve Barcomb
              Jose Exposito Quintana Jose Exposito Quintana
              Tomas Pelka Tomas Pelka
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: