Re: Need some idea to solve Bug 576967 [Allowed to enter numbers with multiple decimal points]



One more additional question:
Is there any way to know the current position of the cursor?


On Wed, Nov 6, 2013 at 1:38 AM, Quazi Marufur Rahman <maruf csdu gmail com> wrote:
Hi,

I am going to solve this bug. It will restrict pressing decimal button multiple times inside a number. That means there will be only one decimal point in a number.
Currently gcalctool allows multiple decimal points in a number.

I have read some part of source code. My idea is to determine if a user is currently inside a number or not. If he is inside a number decimal button will be disabled
after pressing first time. When he goes out of that number decimal button will be activated again. I am assuming, if a user keeps pressing any button among 0-9 he
is inside a number, if he presses any button like '+', '-' he is going out of a number.

Is there any method already implemented to know if a user is inside a number or not? Or is there any better idea?
Waiting for your reply.

Thanks
Quazi Marufur Rahman



--
Quazi Marufur Rahman
Department of Computer Science and Engineering
University of Dhaka
Bangladesh


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]