Questions tagged [input]

Input is usually related to user input, i.e., to the data that user supplies to a running application. In many systems this input is considered to be potentially dangerous and needs to be sanitized to ensure that the user has not injected runnable code into the application.

For questions pertaining to the HTML <input> tag, please use instead.

Input is any form of information that is provided to an application or process. In interactive graphical user interface (GUI) applications, input is often taken from the user via input controls such as textboxes and drop-down lists. In non-interactive services, input is often taken from local or remote resources, or service requests.

34931 questions
6
votes
3 answers

`adb shell input` returns `Killed` response without any input registered

I am trying to simulate touches on my Xiaomi Mi Max 2. I tried monkeyrunner but failed, so I am trying adb. However, each command is returned by Killed response and no touch/key is pressed. What does it mean?
Luke Vo
  • 17,859
  • 21
  • 105
  • 181
6
votes
0 answers

Change comma to period in decimal pad ignoring current device locale

I have a UITextField and its keyboard type is DecimalPad. The app only supports one language (italian) and the decimal pad displays a comma instead of a period as a decimal separator. I need to change that comma to a period, so that, whatever locale…
user5273262
6
votes
1 answer

Input type=File "Accept" property does not work in Chrome?

Have been through quite some documentation but don't seem to get this very basic thing working in Chrome. The dialog that opens just shows "Custom Files" in the extension drop-down. See this Fiddle. It only…
Youp Bernoulli
  • 5,303
  • 5
  • 39
  • 59
6
votes
0 answers

Angular input change detection performance with mat table data source

Does anyone know if updating a mat table data source in the ngOnChanges lifecycle hook is ok? Or is there a potential data leak or performance concern at scale? Here is a simple example of what I mean. A child component has a parent component that…
6
votes
1 answer

Input type number doesn't work on Window Surface Tablet

i've noticed that if we try to open https://www.w3schools.com/html/tryit.asp?filename=tryhtml_input_number in Chrome on Windows Surface Tablet it will behave as in desktop browser. I mean on Tablet(mobile) device if i tap on
VladosJS
  • 1,210
  • 8
  • 20
6
votes
2 answers

Python: Check if a directory exists using os module

I'm trying to validate if a directory received as user input exists using the os module This is how I'm accepting the input: directory = input("Hi ! \n please type a directory, thanks !") The idea is that I want to make sure the user will type an…
CG_corp
  • 103
  • 1
  • 1
  • 8
6
votes
1 answer

Need React input box to be a floating number

I need a simple input box to be a floating point number (anything with a . really). As it is right now, it doesn't allow me to put the dot and do a floating point. Should be simple but I can't find much on this. Here is roughly the current…
theJuls
  • 6,788
  • 14
  • 73
  • 160
6
votes
1 answer

How to make Perl use different handles for pipe input and keyboard input?

I have a Perl script processing a pipe. At some point, I would like the script to pause and ask for user keyboard input. my $input = ; does not work. It just reads next line from the pipe. How can I make Perl use different handles for…
Arkady
  • 63
  • 3
6
votes
3 answers

Angular Material Input Select All on Click?

Pretty straight-forward question. When I click on an input field I want to select-all the text so when I start typing it over-writes what was previously there. Anyone know how to do this?
Jus10
  • 14,519
  • 21
  • 52
  • 77
6
votes
1 answer

c++ stop asking for input on ctrl-d

I am trying to read user input until ctrl-d is hit. If I am correct, ctrl+d emits an EOF signal so I have tried checking if cin.eof() is true with no success. Here is my code: string input; cout << "Which word starting which year? "; while…
APorter1031
  • 2,107
  • 6
  • 17
  • 38
6
votes
1 answer

Firefox Quantum (57) UI Close/delete button Hide

Since updating firefox we now have small (x) buttons appearing in the input as part of firefox's UI controls. Is there any way I can hide/remove these buttons using css? You can see this on the firefox input date webpage on mozilla…
HKG
  • 261
  • 4
  • 15
6
votes
2 answers

Is there a way to create a 'number' input FormControl in Angular 2 Reactive Forms

I have edited the official Angular.io tutorial on Dynamic Forms, in order to add a form control/input field of type "number". https://plnkr.co/edit/NslBCrFZLQnLblAqcmzV NumberQuestion class import { QuestionBase } from './question-base'; export…
ktsangop
  • 1,013
  • 2
  • 16
  • 29
6
votes
3 answers

How buffered input works

The input in next program (using DOS.BufferedInput function 0Ah) works OK, but when I ask to show the output, DOS doesn't display anything at all. How is this possible? ORG 256 mov dx, msg1 mov ah, 09h …
Sep Roland
  • 33,889
  • 7
  • 43
  • 76
6
votes
0 answers

Cannot select or copy text from ion-input

I'm developing an app using ionic3, but when using it on android, I can't select text inside , , or