Comments (22)
can do it later
from cudatext.
@veksha confirmed. I will report this issue to lazarus bugtracker. thanks.
from cudatext.
I cannot see the problem here.
no, Python is NOT the reason:
a) single-line inputs don't use Python
b) you can set wrong value of "pylib__linux" and it is not the fix
so some system setting is maybe the reason.
What OS / Desktop (on Unixes) and is it Gtk2 or Qt5?
from cudatext.
Debian, Xfce, GTK2.
199 worked well (and again works) and 208.5 doesn't... whether you can reproduce or not.
If I have a little more time I might try interim versions eg 204 etc and see when this first pops up. May take a while though and 199 was pretty stable so no need for me to rush this.
from cudatext.
Notebook with Xubuntu (Debian based) 22 / Xfce.
All works for me (1.202 and 1.209).
in theory it is possible that some OS setting (or app) blocks BkSp key in Cud.
from cudatext.
@veksha sorry, do you have time to install Lazarus 2.2.6
https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/
? if you compile Cud with it, we will ask topic-starter to test the binary.
from cudatext.
from cudatext.
@tmsg-gh This binary from veksha's post cannot be run on my older Ubuntu 20 (GLIBC version error), can you run it?
from cudatext.
I can run the above binary but alas the backspace key remains dead.
in theory it is possible that some OS setting (or app) blocks BkSp key in Cud.
While that's clearly true, let me re-iterate that every other program I use on that machine (including your own 199 version) has no problems whatsoever with the backspace key.
from cudatext.
I found this text:
https://forums.codeblocks.org/index.php?topic=20834.0
I run here:
apt list |grep ibus-gtk
and got
ibus-gtk3/focal-updates,now 1.5.22-2ubuntu2.1 amd64 [installed,automatic]
ibus-gtk3/focal-updates 1.5.22-2ubuntu2.1 i386
ibus-gtk/focal-updates,now 1.5.22-2ubuntu2.1 amd64 [installed,automatic]
ibus-gtk/focal-updates 1.5.22-2ubuntu2.1 i386
from cudatext.
I am not sure what to make of that. The post you're linking to deals with Jessie (a really ancient version of Debian) and a toolkit called wxGTK.
At any rate, the packages referred to in that post don't exist for my Debian install (bookworm).
I'll stick with what works and will occasionally check newer versions as to whether they support backspace.
AFAIC you can close this issue as you can't repro the problem.
from cudatext.
I mean that my OS has this
ibus-gtk/focal-updates,now 1.5.22-2ubuntu2.1 amd64 [installed,automatic]
and your OS don't have it. so let's try to install ibus-gtk
on your OS?
from cudatext.
Again, AFAIC you can close this issue as you can't repro the problem.
from cudatext.
I've again looked into the matter of the dead backspace key, mostly because I found it strange that 208.5 would not work and the previously OK 199 would also stop working after 208.5 has been run once. Here is a sequence as to what I've observed.
- Starting point is a working 199 installation, ie backspace works.
- Install 208.5 over 199 and start Cudatext --> backspace is now dead.
- Copy back the 199 executable only (I tried this as a fast first test) --> backspace is still dead.
- Restore the full 199 install --> backspace works again.
- I've tracked the problem to keys.json. After deleting keys.json, no backspace problem with 208.5.
- However, keys.json (the file) is unchanged after 208.5 has been run once but something else must have changed as the 199 binary doesn't work after 208.5 has been started once.
- I've manually cleaned up my keys.json and now both 199 and 208.5 work. However I don't know which of my changes did that.
- A copy of the problematic original keys.json is included. You might be able to repro this strange bug with that and 208.5.
from cudatext.
the bad part of key.json:
{
"152" : {
"name" : "delete char left (backspace)",
"s1" : [
"BkSp"
],
"s2" : [
]
}
}
Cud don't understand string 'BkSp', it understands only 'Backspace' string.
So you can change 'BkSp' to 'Backspace' is backspace works again.
but better delete this part at all.
how did you write 'BkSp' there?
from cudatext.
how did you write 'BkSp' there? - you are OK, it is lazarus issue.
lazarus has 2 functions to convert hotkey to string.
- ShortcutToText --- giving 'BkSp' result for 8
- ShortcutToTextRaw -- giving 'Backspace' result!!! what???
I will study this. at some point Cud changed the used API function so your config - broke the work, sorry.
the remedy - just delete that part from config keys.json.
from cudatext.
Also some key names are different between gtk and qt versions of Cud.
from cudatext.
@veksha What is the list of different keys?
from cudatext.
As you realised I didn't write anything into keys.json, I always use F1/F9 for that, so any invalid string is Cudatext's doing.
lazarus has 2 functions to convert hotkey to string.
Also some key names are different between gtk and qt versions of Cud.
Sounds like a recipe for more disasters. More consistency would help?
from cudatext.
Also some key names are different between gtk and qt versions of Cud.
@veksha means (I guess) then top menu shows different hotkeys in Gtk2/Qt5 versions. don't worry, this display in menu does not affect any configs, it is separate code (one in gtk2, one in qt5, one in windows). it is not reason for a bug.
BTW, the same issue (as 'BkSp' vs 'Backspace') is here for 'PgDown' vs 'PgDn'. i will fix it too. next update of Cud.
from cudatext.
@veksha means (I guess) then top menu shows different hotkeys in Gtk2/Qt5 versions
no. i mean:
if you assign ` key (near 1
key) - Qt5 Cud will show Num0
for it.
-
key (near 0
key) - Qt5 Cud shows NumMinus
shift+=
keys - Qt5 Cud shows Shift+NumPlus
(without shift it shows =
)
Gtk2 version will show correctly: `, -
and Shift+=
from cudatext.
About original issue ('BkSp' vs 'Backspace'). sorry but it won't be changed in lazarus. so the issue will be not fixed. we still have bug if Cud uses old configs with 'BkSp' and 'PgDn' strings. sorry.
the remedy here - is to delete config (keys.json) parts about 'BkSp' and "PgDn".
from cudatext.
Related Issues (20)
- Autocomplete dialog prevents to focus find input on Ctrl+F
- `(without undo) sort` command isn't reliable when word wrap is enabled HOT 6
- Code-Tree Bookmarks plugin, bug with Markdown
- Sometimes, multi-line inputs (`+`) is suddenly enabled in find bar HOT 11
- Error in default.json on MacOS HOT 15
- Caret at wrong position after replace-all HOT 1
- tree_proc API: add node's prop "state image index"
- on_state API event: don't reuse APPSTATE_CODETREE_SET_SELECTION
- Wrapped regex back search doesn't work HOT 26
- Load new file into first instance; font ugliness HOT 7
- "Find first" doesn't work with regex enabled HOT 2
- Command line parameter to go to line does not work in v1.214.x.x HOT 1
- LSP Client not working after adding config for language server HOT 26
- Unable to open Addon Manager or Multi Installer on Windows 10 HOT 9
- Hide popup data HOT 2
- for forum user: test KeyDown, x64 Qt5 version
- "Replace All" break syntax highlighting especially comments HOT 2
- For long CJK lines (len>1024), CJK chars are rendered overlapped HOT 5
- Broken selection when you perform column selection and move mouse out of editor HOT 3
- When doing column selection, cursor shouldn't be displayed at invalid positions at right HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cudatext.