This is drivin' me nuts. When I type an apostrophe ('), using the key in between ; and Return (this one), followed by the letter 't', it triggers TeXstudio to build the document. Specifically it tells it to Build & View. So every time I want to type something like 'he doesn't think X', what I get is 'he doesn'', at which point TeXstudio cuts me off because it's building. More info:
The behavior happens not just in complex documents, but already manifests with simple examples like this:
`\documentclass{article}
\begin{document}
Hello world. This doesn'
\end{document}`
Does anyone have any idea? I'm a novice LaTeX user, let me know what further details I can provide to help clear this up.
Oops, apparently I wasn't logged in when I posted that bugreport (is that even possible? Sourceforge has had issues over the past few days). Anyway, it was me, and now I can't edit my post to remove that bothersome typo. Apologies.
which OS
Windows 10.
Edit: specifically Windows 10 Pro 64-bit, running on a Microsoft Surface Pro 4 (m3-6y30 CPU).
Last edit: Frank van Caspel 2017-08-23
what keyboard layout is used ? Any helper programs concerning keyboard ?
where is the installer from ?
I'm using United States (international) keyboard layout, and have not installed any programs relating to the functioning of the keyboard as far as I know. It's bare Windows + Google Drive & F.lux. No other programs display any strange behavior upon me typing 't.
I've installed TeXstudio by downloading the installer via texstudio.org/#download.
Edit: I've been using TeXstudio for a while, and can't remember ever having this issue in previous versions (running on the same machine). I suppose it's something I would have noticed had it been an issue before.
Last edit: Frank van Caspel 2017-08-23
same here: [bugs:#2008]
But I still cannot reproduce it here. So we can only try the cumbersome way of identifying the issue on your system. Please do the following and check on every step if the problem still exists:
Options -> Shortcutsand remove both the current and the additional shortcut forTools -> Build and View.test.txt. (Changing to txt will deactivate further LaTeX related editor functions.)Related
Bugs:
#2008Thanks for doing this, Tim.
I've gone back to my regular installation, and confirmed that doing step 2 there also fixes the problem. In fact: it is enough to only delete F5 as the current hotkey. F1 is then automatically set as the current hotkey, and the problem is gone. I'll just switch to F1, a very small price to pay indeed :).
I'm glad, there is a simple workaround.
Nevertheless, the behavior is quite strange. I would like to fix the cause because I seems to affect also some other people. Would you be willing to perform some more test, to help me fix this?
If so, next step to verify the relation
't <-> F5 shortcut: Please assign F5 to another menu item, e.g.Help -> About. Does'topen the about menu then?I'd be very glad to help, just give me pointers and I'll follow up.
I've set F5 as a hotkey for 'About' and the behavior resurfaces. Now when I type 't, the About-screen pops up. Same as before in that it doesn't happen until a first Build & View has happened, and then occurs consistently.
Thanks. Next step: Testing if the key press is required (still using F5 bound to the about dialog).
Test 1:
Copy a
tinto the clipboard. Type'then paste usingCtrl+V. Does this trigger the shortcut?Test 2:
You can input characters using their ascii-code by holding the left
Altkey and typing the ascii code on the numeric keypad, i.e. for typing'(ascii code 39)AltAltkeyEffect: the corresponding character is inserted.
Try all the combinations of inserting either
'(code 39) ort(code 116) or both and check if this triggers the shortcut.Last edit: Tim Hoffmann 2017-08-29
Apologies, double post.
Last edit: Frank van Caspel 2017-08-30
This is really weird: suddenly, without me changing anything the behavior has become inconsistent. Now sometimes I can load up TeXstudio with a basic example and the bug won't surface right away after me compiling once. But then after a while, without me doing anything, it does start happening. I've been testing a bit but I'm really not doing anything else to trigger it. I thought it might have been Alt-tabbing or typing other letters before 't that would prime the bug, but none of that's the case. No idea why sometimes there's a delay now.
At other times the bug appears as before. I've confirmed that F5 is still set as the hotkey for About.
Something new has also just surfaced: right now when I press the '-button and then the t-button, what happens is that only a ' appears, and weirdly enough the cursor will stay behind the '. So when I continue to type the ' stays at the end of the line. This behavior is unique to TeXstudio, I've also got Chrome, Notepad and Word open and they all work normally. A reboot of TeXstudio fixes this.
Anyhow, I've managed to get the bug 'working' again (currently every time I type 't the About-menu pops up), and followed your steps:
2-5:
I'm clueless...
Just to be sure, we're talking about the apostroph
', not about accent or (back)ticks ` or´?Now, that's getting interesting. Is the apostroph a dead key on your keyboard?
I'm not 100% on the terminology, but yes: I think the key I'm referring to is the apostrophe key, and I think it's what you refer to as a dead key. The key I'm talking about is indicated in the image I link to in the start post, and when I press it once, it does not produce an immediate output. If followed by space it produces ', if followed by vowels it modifies it (áéíóúý). I thought this was standard behavior - I've never known it to behave differently.
Do you think dead keys have something to do with it? If the dead keys are followed by any other letter than t there's no problem, so it would have to be a very specific problem. I did try all other 'dead key combinations' I could think of and combined them with t, and all of them triggered the issue. So for example when I press Shift + ^ (the 6-key), then release, then follow by t, the bug triggers. Had I pressed a in stead of t, I would have gotten â.
now we are getting somewhere. Most european keyboard maps have different keys for ' and ´, hence you can't provoke said behaviour. Probably we need to test the issue with american (intl) keybaord map ... a quick test on osx did not show the false triggering, but it showed the said key composing.
Just to confirm: my physical keyboard layout is exactly like in the image I linked to in the startpost (except I have some extra keys like Fn), and in Windows my keyboard layout is set to United States (International).
seems to be a qt bug
´+t triggers the behaviour on German keyboards, even in QT-creator...
the bug is still present in qt 5.9.1
I have implemented a work-around for win which filter especially ´+t .
It would be interesting to know whether there are other combinations which might cause problems
This is a known QTBUG-61458.
Seems to affect at least other
'+[char]=Fxas well (see bug report).e.g.
'+s=F4.so probably we should filter alls single chars withoput modifier ...
I cannot test right now.
Is there a particular reason that you've used a tick '´' and not an apostroph
'in your fix?Maybe we should limit the patch to Qt and the US international layout?
the bug also comes up with German '+t. The key was checked before the fix ...
You guys are awesome for uncovering the issue so quickly. I'll shut up for now but will keep reading in case you want me to test something on my system.