LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-20-2024, 04:03 AM   #1
exerceo
Member
 
Registered: Oct 2022
Posts: 34

Rep: Reputation: 7
Exclamation Button presses during lag are applied in an incorrect order during while lagging.


While the computer is lagging, keystrokes are buffered so they are applied after the lagging is over. This means that when the user types a word while the computer is lagging, no letters appear on screen during the lag, but the letters typed during the lag appear after the lag is over.

There is one problem: sometimes, when pressing keyboard combinations, the order of keystrokes goes wrong.

For example, when pressing CTRL+V to paste the text "456" after manually typing "123" during a lag, the resulting text after the lag is "456123", while it should be "123456".

Another example: When pressing button combinations in web browsers during a lag, the order is reversed. Pressing Alt+Home goes to the home page and pressing Ctrl+Tab goes to the next tab. When doing so during a lag, it first goes to the next tab and then puts the next tab into "home".

This is one of those annoyances that first seem minor, but become significant due to repetition.
 
Old 02-20-2024, 11:43 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Stop typing when lag starts, resume when it goes away.
 
1 members found this post helpful.
Old 02-21-2024, 02:22 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
Yes, lagging has unpredictable side effects, you need to avoid that.
 
Old 02-21-2024, 03:10 AM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
“Dr. It hurts when I do this”
 
Old 02-21-2024, 03:49 AM   #5
lvm_
Member
 
Registered: Jul 2020
Posts: 930

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Some of the keystrokes are handled by the window manager while some - directly by the program e.g. alt-home is the system shortcut while ^tab is browser-specific and handled by the browser, default system shortcut for the next tab is ^pgdn. This could be the reason for reordering under heavy load, try using only system shortcuts. You may redefine them to your liking in system settings, at least in KDE. Won't help for the mixture of shortcuts and plain text, of course.
 
  


Reply

Tags
lagging



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Logi Sales Manager on Ncurses (invoice, invoicing, orders, order, sale order, sales order...)? Xeratul Linux - Software 0 03-25-2017 02:45 PM
Custom acpid script to shutdown after 3 presses of the power button? comiconomenclaturist Linux - General 1 11-02-2012 12:49 PM
Lirc ignores remote button presses monstermunch Linux - Software 3 02-01-2008 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration