Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
11.2
-
None
-
None
-
Product Version = Apache NetBeans IDE 11.2
Operating System = Linux version 5.0.0-37-generic running on amd64
Java; VM; Vendor = 11.0.5; OpenJDK 64-Bit Server VM 11.0.5+10-post-Ubuntu-0ubuntu1.118.04; Private Build
Runtime = OpenJDK Runtime Environment 11.0.5+10-post-Ubuntu-0ubuntu1.118.04
Java Home = /usr/lib/jvm/java-11-openjdk-amd64
System Locale; Encoding = en_CA (nb); UTF-8Product Version = Apache NetBeans IDE 11.2 Operating System = Linux version 5.0.0-37-generic running on amd64 Java; VM; Vendor = 11.0.5; OpenJDK 64-Bit Server VM 11.0.5+10-post-Ubuntu-0ubuntu1.118.04; Private Build Runtime = OpenJDK Runtime Environment 11.0.5+10-post-Ubuntu-0ubuntu1.118.04 Java Home = /usr/lib/jvm/java-11-openjdk-amd64 System Locale; Encoding = en_CA (nb); UTF-8
Description
So this one was a bit fun to narrow down. I thought it was the keyboard at first, then maybe read-only file, but other files work and restarting didn't solve the problem.
Symptoms
Loss of TAB and RETURN/ENTER key functionality.
Cause
I've narrowed the problem down to this piece of PHP:
<?php $pattern = '%<a.+?style="(?<style>.+?)".*?>(?<value>.+?)</a>%'; $str = '<img'; if (preg_match('%/(\d+)/0%', $str)) $k = '';
Removing any of the above lines seem to solve the problem.
All other keyboard keys and commands seem to work, including copy and pasting line-breaks and tabs.